语言

ImageListArray.GetIndex(ImageList) 方法

定义

获取一个 . 中的索引ImageListImageListArray。

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

参数

o
ImageList

控件数组中的一个 ImageList 。

返回

表示指定Short索引的 AImageList。

注解

此方法可用于检索所选 ImageList索引。

注释

命名空间中的 Microsoft.VisualBasic.Compatibility.VB6 函数和对象由用于从 Visual Basic 6.0 升级到 Visual Basic 的工具使用。 在大多数情况下,这些函数和对象重复了可在 .NET Framework 中的其他命名空间中找到的功能。 仅当 Visual Basic 6.0 代码模型与 .NET Framework 实现明显不同时,它们才是必需的。

适用于