IContentHost.GetRectangles(ContentElement) Metod

Definition

Returnerar en samling avgränsningsrektanglar för ett underordnat element.

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)

Parametrar

child
ContentElement

Det underordnade element som avgränsningsrektanglarna returneras för.

Returer

En samling avgränsningsrektanglar för ett underordnat element.

Undantag

Om underordnad är null.

Om elementet inte är en direkt underordnad (dvs. elementet måste vara ett underordnat IContentHost element till eller som ContentElement är en direkt underordnad IContentHosttill ).

Gäller för