OpenFileDialogArray.GetIndex(OpenFileDialog) 方法

定義

取得 OpenFileDialogOpenFileDialogArray 的索引。

public:
 short GetIndex(System::Windows::Forms::OpenFileDialog ^ o);
public short GetIndex (System.Windows.Forms.OpenFileDialog o);
member this.GetIndex : System.Windows.Forms.OpenFileDialog -> int16
Public Function GetIndex (o As OpenFileDialog) As Short

參數

o
OpenFileDialog

控制項陣列中的 OpenFileDialog

傳回

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

備註

這個方法可用來擷取指定 OpenFileDialog之的索引。

注意

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

適用於