VisualTreeHelper.GetDescendantBounds Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Returnerar en union av alla innehållsgränsrutor för alla underordnade objekt i det visuella objektet, som innehåller innehållsgränsrutan i Visual.
Överlagringar
| Name | Description |
|---|---|
| GetDescendantBounds(Visual3D) |
Returnerar en union av alla innehållsgränsrutor för alla underordnade till den angivna Visual3D, som innehåller innehållsgränsrutan i Visual3D. |
| GetDescendantBounds(Visual) |
Returnerar union av alla innehållsgränsrutor för alla underordnade Visuali , som innehåller innehållsgränsrutan i Visual. |
GetDescendantBounds(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
Parametrar
- reference
- Visual3D
Det visuella 3D-objektet vars avgränsningsrutevärde för alla underordnade beräknas.
Returer
Returnerar avgränsningsrutans 3D-rektangel för det visuella 3D-objektet.
Kommentarer
GetContentBounds Anropa metoden för att returnera den cachelagrade rektangeln för avgränsningsrutan för ett 3D-objekt.
Gäller för
GetDescendantBounds(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
Parametrar
Returer
Rektangeln för avgränsningsrutan för den angivna Visual.
Exempel
I följande exempel visas hur du hämtar unionen av avgränsningsrektanglar för underordnade till en 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)
Kommentarer
GetContentBounds Anropa metoden för att returnera rektangeln för cachelagrad avgränsningsruta för en Visual.