VisualTreeHelper.GetDescendantBounds 메서드

정의

Visual의 콘텐츠 경계 상자가 포함된 시각적 개체의 모든 하위 항목에 대한 모든 콘텐츠 경계 상자의 공용 구조체를 반환합니다.

오버로드

GetDescendantBounds(Visual3D)

Visual3D의 내용 경계 상자를 포함한 지정된 Visual3D의 모든 하위 항목에 대한 모든 내용 경계 상자의 합집합을 반환합니다.

GetDescendantBounds(Visual)

Visual의 내용 경계 상자를 포함한 Visual의 모든 하위 항목에 대한 모든 내용 경계 상자의 합집합을 반환합니다.

GetDescendantBounds(Visual3D)

Visual3D의 내용 경계 상자를 포함한 지정된 Visual3D의 모든 하위 항목에 대한 모든 내용 경계 상자의 합집합을 반환합니다.

public:
 static System::Windows::Media::Media3D::Rect3D GetDescendantBounds(System::Windows::Media::Media3D::Visual3D ^ reference);
public static System.Windows.Media.Media3D.Rect3D GetDescendantBounds (System.Windows.Media.Media3D.Visual3D reference);
static member GetDescendantBounds : System.Windows.Media.Media3D.Visual3D -> System.Windows.Media.Media3D.Rect3D
Public Shared Function GetDescendantBounds (reference As Visual3D) As Rect3D

매개 변수

reference
Visual3D

모든 하위 항목에 대한 경계 상자 값이 계산되는 3차원 표시입니다.

반환

Rect3D

3차원 표시에 대한 경계 상자 3차원 사각형을 반환합니다.

설명

메서드를 GetContentBounds 호출하여 3D 시각적 개체에 대해 캐시된 경계 상자 사각형을 반환합니다.

적용 대상

GetDescendantBounds(Visual)

Visual의 내용 경계 상자를 포함한 Visual의 모든 하위 항목에 대한 모든 내용 경계 상자의 합집합을 반환합니다.

public:
 static System::Windows::Rect GetDescendantBounds(System::Windows::Media::Visual ^ reference);
public static System.Windows.Rect GetDescendantBounds (System.Windows.Media.Visual reference);
static member GetDescendantBounds : System.Windows.Media.Visual -> System.Windows.Rect
Public Shared Function GetDescendantBounds (reference As Visual) As Rect

매개 변수

reference
Visual

모든 하위 항목에 대한 경계 상자 값이 계산되는 Visual입니다.

반환

Rect

지정한 Visual에 대한 경계 상자 사각형입니다.

예제

다음 예제에서는 경계 사각형의 하위 항목 Visual에 대 한 공용 구조체를 검색 하는 방법을 보여 줍니다.

// Return the bounding rectangle of the parent visual object and all of its descendants.
Rect rectBounds = VisualTreeHelper.GetDescendantBounds(parentVisual);
' Return the bounding rectangle of the parent visual object and all of its descendants.
Dim rectBounds As Rect = VisualTreeHelper.GetDescendantBounds(parentVisual)

설명

메서드를 GetContentBounds 호출하여 캐시된 경계 상자 사각형을 Visual반환합니다.

적용 대상