IContentHost.GetRectangles(ContentElement) Metoda

Definicja

Zwraca kolekcję prostokątów powiązanych dla elementu podrzędnego.

public:
 System::Collections::ObjectModel::ReadOnlyCollection<System::Windows::Rect> ^ GetRectangles(System::Windows::ContentElement ^ child);
public System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect> GetRectangles (System.Windows.ContentElement child);
abstract member GetRectangles : System.Windows.ContentElement -> System.Collections.ObjectModel.ReadOnlyCollection<System.Windows.Rect>
Public Function GetRectangles (child As ContentElement) As ReadOnlyCollection(Of Rect)

Parametry

child
ContentElement

Element podrzędny zwracany przez prostokąty ograniczenia.

Zwraca

Kolekcja prostokątów związanych z elementem podrzędnym.

Wyjątki

Jeśli element podrzędny ma wartość null.

Jeśli element nie jest bezpośrednim elementem potomnym (tj. element musi być elementem podrzędnym IContentHost lub elementem ContentElement , który jest bezpośrednim elementem potomnym elementu IContentHost).

Dotyczy