将枚举数索引移到集合中的下一对象。
命名空间: Microsoft.Ink
程序集: Microsoft.Ink(在 Microsoft.Ink.dll 中)
语法
声明
Public Function MoveNext As Boolean
用法
Dim instance As ExtendedProperties..::.ExtendedPropertiesEnumerator
Dim returnValue As Boolean
returnValue = instance.MoveNext()
public bool MoveNext()
public:
virtual bool MoveNext() sealed
public final boolean MoveNext()
public final function MoveNext() : boolean
返回值
类型:System.Boolean
如果索引位置引用对象,则为 true;如果索引位置引用集合末尾,则为 false。
实现
备注
ExtendedProperties.ExtendedPropertiesEnumerator 支持循环访问 ExtendedProperties 集合,并实现 System.Collections.IEnumerator 接口。
此方法继承自 System.Collections.IEnumerator.MoveNext。
示例
在此示例中,将获取 ExtendedProperties 集合的 System.Collections.IEnumerator,并用于枚举该集合的每个项。虽然对于其他对象同样适用,但本示例中的 ExtendedProperties 集合是由 Stroke.ExtendedProperties 属性返回的。
Dim propList As ArrayList = New ArrayList()
Dim ienum As IEnumerator = stroke.ExtendedProperties.GetEnumerator()
ienum.Reset()
While ienum.MoveNext()
Dim prop As ExtendedProperty = DirectCast(ienum.Current, ExtendedProperty)
propList.Add(prop)
End While
ArrayList propList = new ArrayList();
IEnumerator ienum = stroke.ExtendedProperties.GetEnumerator();
ienum.Reset();
while (ienum.MoveNext())
{
ExtendedProperty prop = (ExtendedProperty)ienum.Current;
propList.Add(prop);
}
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0
另请参见
参考
ExtendedProperties.ExtendedPropertiesEnumerator 类