PrintDialogArray.SetIndex(PrintDialog, Int16) メソッド

定義

PrintDialogArrayの初期PrintDialogのインデックスを設定します。

public:
 void SetIndex(System::Windows::Forms::PrintDialog ^ o, short Index);
public void SetIndex(System.Windows.Forms.PrintDialog o, short Index);
member this.SetIndex : System.Windows.Forms.PrintDialog * int16 -> unit
Public Sub SetIndex (o As PrintDialog, Index As Short)

パラメーター

o
PrintDialog

コントロール配列内の PrintDialog

Index
Int16

指定したPrintDialogのインデックスを表すShort

注釈

SetIndex メソッドは、コントロール配列に初期要素を作成するときにのみ呼び出す必要があります。 後続の要素を追加するには、 Load メソッドを呼び出し、 Indexを指定します。

Note

Microsoft.VisualBasic.Compatibility.VB6名前空間の関数とオブジェクトは、Visual Basic 6.0 から Visual Basic にアップグレードするためのツールで使用するために用意されています。 ほとんどの場合、これらの関数とオブジェクトは、.NET Framework の他の名前空間で見つけることができる機能を複製します。 これらは、Visual Basic 6.0 コード モデルが .NET Framework の実装と大きく異なる場合にのみ必要です。

適用対象