IContentHost.GetRectangles(ContentElement) Méthode

Définition

Retourne une collection de rectangles englobants pour un élément enfant.

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)

Paramètres

child
ContentElement

Élément enfant pour lequel les rectangles englobants sont retournés.

Retours

Collection de rectangles englobants pour un élément enfant.

Exceptions

Si l’enfant a la valeur Null.

Si l’élément n’est pas un descendant direct (c’est-à-dire que l’élément doit être un enfant de l’élément IContentHost ou un ContentElement descendant direct de l’élément IContentHost).

S’applique à