VisualTreeHelper.GetDescendantBounds Metoda

Definice

Vrátí sjednocení všech polí ohraničující obsah pro všechny potomky vizuálního objektu, který zahrnuje pole ohraničující obsah objektu Visual.

Přetížení

GetDescendantBounds(Visual3D)

Vrátí sjednocení všech ohraničujících polí obsahu pro všechny potomky zadaného Visual3Dobjektu , který zahrnuje ohraničující pole obsahu .Visual3D

GetDescendantBounds(Visual)

Vrátí sjednocení všech ohraničujících polí obsahu pro všechny potomky objektu Visual, který obsahuje rámečky ohraničující obsah .Visual

GetDescendantBounds(Visual3D)

Vrátí sjednocení všech ohraničujících polí obsahu pro všechny potomky zadaného Visual3Dobjektu , který zahrnuje ohraničující pole obsahu .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

Parametry

reference
Visual3D

3D vizuál, jehož ohraničující hodnota rámečku pro všechny potomky se vypočítá.

Návraty

Rect3D

Vrátí 3D obdélník ohraničujícího rámečku pro 3D vizuál.

Poznámky

Zavolejte metodu GetContentBounds , která vrátí obdélník ohraničujícího rámečku v mezipaměti pro 3D vizuální objekt.

Platí pro

GetDescendantBounds(Visual)

Vrátí sjednocení všech ohraničujících polí obsahu pro všechny potomky objektu Visual, který obsahuje rámečky ohraničující obsah .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

Parametry

reference
Visual

Hodnota Visual ohraničujícího rámečku pro všechny potomky se vypočítá.

Návraty

Rect

Obdélník ohraničujícího rámečku pro zadaný Visual.

Příklady

Následující příklad ukazuje, jak načíst sjednocení ohraničující obdélníky pro potomky Visuala .

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

Poznámky

Zavolejte metodu GetContentBounds , která vrátí obdélník ohraničujícího rámečku v mezipaměti pro určitou Visualhodnotu .

Platí pro