VisualTreeHelper.GetDescendantBounds メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
Visualのコンテンツ 境界ボックスを含む、ビジュアル オブジェクトのすべての子孫のすべてのコンテンツ 境界ボックスの和集合を返します。
オーバーロード
| 名前 | 説明 |
|---|---|
| GetDescendantBounds(Visual3D) |
Visual3Dのコンテンツ 境界ボックスを含む、指定したVisual3Dのすべての子孫のすべてのコンテンツ 境界ボックスの和集合を返します。 |
| GetDescendantBounds(Visual) |
Visualのコンテンツ 境界ボックスを含む、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
パラメーター
- reference
- Visual3D
すべての子孫の境界ボックス値が計算される 3D ビジュアル。
返品
3D ビジュアルの境界ボックス 3D 四角形を返します。
注釈
GetContentBounds メソッドを呼び出して、3D ビジュアル オブジェクトのキャッシュされた境界ボックスの四角形を返します。
適用対象
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
パラメーター
返品
指定した 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のキャッシュされた境界ボックスの四角形を返します。