Freigeben über


ContainerVisual.DescendantBounds Eigenschaft

Definition

Ruft die Vereinigung aller inhaltsgebundenen Felder für alle Untergeordneten des ContainerVisual, aber nicht einschließlich des Inhalts der .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

Eigenschaftswert

Ein Rect Wert, der das umgebende Kombinationsfeld angibt.

Beispiele

Das folgende Beispiel zeigt, wie das umgebende Rechteck der Nachfolger eines ContainerVisual Objekts abgerufen wird.

// 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)

Hinweise

Rufen Sie die ContentBounds Eigenschaft ab, um das zwischengespeicherte umgebende Feldrechteck für das ContainerVisual selbst zurückzugeben.

Gilt für: