ContainerVisual.DescendantBounds 속성

정의

ContainerVisual의 내용을 제외한 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

속성 값

Rect

조합 경계 상자를 지정하는 Rect입니다.

예제

다음 예제에서는 개체의 하위 항목의 경계 사각형을 검색하는 ContainerVisual 방법을 보여 있습니다.

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

설명

ContentBounds 자체에 대해 ContainerVisual 캐시된 경계 상자 사각형을 반환하는 속성을 가져옵니다.

적용 대상