PrintDialogArray.SetIndex(PrintDialog, Int16) 方法

定義

設定 PrintDialog 中初始 PrintDialogArray 的索引。

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

Short,代表指定之 PrintDialog 的索引。

備註

SetIndex只有在您在控件數位中建立初始專案時,才應該呼叫 方法。 若要新增後續專案,請呼叫 Load 方法並指定 Index

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。

適用於