Sdílet prostřednictvím


ContainerVisual.DescendantBounds Vlastnost

Definice

Získá sjednocení veškerého obsahu ohraničující rámečky pro všechny potomky , ContainerVisualale neobsahuje obsah 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

Hodnota vlastnosti

Rect

A Rect , který určuje kombinaci ohraničujícího rámečku.

Příklady

Následující příklad ukazuje, jak načíst ohraničující obdélník ContainerVisual potomků objektu.

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

Poznámky

ContentBounds Získejte vlastnost pro vrácení obdélníku ohraničujícího rámečku v mezipaměti pro ContainerVisual sebe.

Platí pro