Decorator.GetVisualChild(Int32) メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した index
の位置にある子 Visual 要素を取得します。
protected:
override System::Windows::Media::Visual ^ GetVisualChild(int index);
C#
protected override System.Windows.Media.Visual GetVisualChild (int index);
override this.GetVisualChild : int -> System.Windows.Media.Visual
Protected Overrides Function GetVisualChild (index As Integer) As Visual
- index
- Int32
子要素のインデックス位置。
指定した index
の位置にある子要素。
index
が、子ビジュアル要素の数を超えています。
0 または 1 しか等しくない場合があるため Child 、1 より大きい位置または 0 未満の位置を指定 index
すると ArgumentOutOfRangeException、.
製品 | バージョン |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |
Windows Desktop | 3.0, 3.1, 5, 6, 7 |