ImageListArray.Item[Int16] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 By 索引中 ImageListArray 的特定元素。 唯讀。
public:
property System::Windows::Forms::ImageList ^ default[short] { System::Windows::Forms::ImageList ^ get(short Index); };
public System.Windows.Forms.ImageList this[short Index] { get; }
member this.Item(int16) : System.Windows.Forms.ImageList
Default Public ReadOnly Property Item(Index As Short) As ImageList
參數
- Index
- Int16
A Short 指定控制陣列中元素的位置。
屬性值
在 ImageList 控制陣列中指定的 Index 位置。
備註
屬性 Item 是控制陣列的預設屬性。 因此,以下程式碼行數是等價的。
MsgBox(CStr(ImageListArray.Item(1).Text))
MsgBox(CStr(ImageListArray(1).Text))
Note
命名空間中的 Microsoft.VisualBasic.Compatibility.VB6 函式與物件提供給從 Visual Basic 6.0 升級到 Visual Basic 的工具使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。