ExtendedProperties.IndexOf 方法 (ExtendedProperty)

根据特定 ExtendedProperty 对象的名称,返回该 ExtendedProperty 对象在 ExtendedProperties 集合中的索引。

命名空间:  Microsoft.Ink
程序集:  Microsoft.Ink(在 Microsoft.Ink.dll 中)

语法

声明
Public Function IndexOf ( _
    ep As ExtendedProperty _
) As Integer
用法
Dim instance As ExtendedProperties
Dim ep As ExtendedProperty
Dim returnValue As Integer

returnValue = instance.IndexOf(ep)
public int IndexOf(
    ExtendedProperty ep
)
public:
int IndexOf(
    ExtendedProperty^ ep
)
public int IndexOf(
    ExtendedProperty ep
)
public function IndexOf(
    ep : ExtendedProperty
) : int

参数

返回值

类型:System.Int32
ExtendedProperty 对象在 ExtendedProperties 集合中的索引。

备注

如果 ExtendedProperties 集合中不存在传入的 ExtendedProperty 对象,则此方法返回 –1。

示例

此示例将获取 ExtendedProperty 对象在 ExtendedProperties 集合中的索引。

Dim idx As Integer = stroke.ExtendedProperties.IndexOf(exProp)
int idx = stroke.ExtendedProperties.IndexOf(exProp);

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

ExtendedProperties 类

ExtendedProperties 成员

IndexOf 重载

Microsoft.Ink 命名空间

ExtendedProperty