Share via


ContainerVisual.DescendantBounds Proprietà

Definizione

Ottiene l'unione di tutti i riquadri delimitatori del contenuto per tutti i discendenti dell'oggetto ContainerVisual, escluso il contenuto dell'oggetto ContainerVisual.

public:
 property System::Windows::Rect DescendantBounds { System::Windows::Rect get(); };
public System.Windows.Rect DescendantBounds { get; }
member this.DescendantBounds : System.Windows.Rect
Public ReadOnly Property DescendantBounds As Rect

Valore della proprietà

Rect

Oggetto Rect che specifica il riquadro delimitatore del testo della combinazione.

Esempio

Nell'esempio seguente viene illustrato come recuperare il rettangolo di associazione dei discendenti di un ContainerVisual oggetto.

// Return the bounding rectangle for the ContainerVisual.
Rect rectBounds = containerVisual.ContentBounds;

// Expand the rectangle to include the bounding rectangle
// of the all of the ContainerVisual's descendants.
rectBounds.Union(containerVisual.DescendantBounds);
' Return the bounding rectangle for the ContainerVisual.
Dim rectBounds As Rect = containerVisual.ContentBounds

' Expand the rectangle to include the bounding rectangle
' of the all of the ContainerVisual's descendants.
rectBounds.Union(containerVisual.DescendantBounds)

Commenti

Ottenere la proprietà per restituire il ContentBounds rettangolo della casella di selezione memorizzato nella cache per se ContainerVisual stesso.

Si applica a