OpenFileDialogArray.SetIndex(OpenFileDialog, Int16) 方法

定義

將首字母 OpenFileDialog 的索引設為 OpenFileDialogArray

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

參數

o
OpenFileDialog

控制陣列裡的一個 OpenFileDialog

Index
Int16

A Short 代表指定 OpenFileDialog的索引。

備註

SetIndex這個方法應該只在你建立控制陣列初始元素時才被呼叫。 若要加入後續元素,請呼叫該 Load 方法並指定 Index

Note

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

適用於