IContentHost.GetRectangles(ContentElement) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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).