Control.ControlCollection.SetChildIndex メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As ControlCollection Dim child As Control Dim newIndex As Integer instance.SetChildIndex(child, newIndex)


SetChildIndex が呼び出された場合、child パラメータで参照されている Control は newIndex で指定した位置に移動し、Control.ControlCollection 内の Control 参照は、この移動を挿入できるように並べ替えられます。インデックス値が 0 のコントロールが z オーダーの最上位になり、番号が大きくなるにつれて z オーダーの下に近づいていきます。

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Control.ControlCollection クラス
Control.ControlCollection メンバ
System.Windows.Forms 名前空間
GetChildIndex
- Control.ControlCollection.SetChildIndex メソッドのページへのリンク