MaterialCollection.Enumerator 结构

定义

枚举 MaterialCollection 中的 Material 项。Enumerates Material items in a MaterialCollection.

public: value class MaterialCollection::Enumerator : System::Collections::Generic::IEnumerator<System::Windows::Media::Media3D::Material ^>
public struct MaterialCollection.Enumerator : System.Collections.Generic.IEnumerator<System.Windows.Media.Media3D.Material>
type MaterialCollection.Enumerator = struct
    interface IEnumerator<Material>
    interface IEnumerator
    interface IDisposable
type MaterialCollection.Enumerator = struct
    interface IEnumerator<Material>
    interface IDisposable
    interface IEnumerator
type MaterialCollection.Enumerator = struct
    interface IEnumerator
    interface IEnumerator<Material>
    interface IDisposable
Public Structure MaterialCollection.Enumerator
Implements IEnumerator(Of Material)
继承
MaterialCollection.Enumerator
实现

属性

Current

获取 MaterialCollection 中的当前元素。Gets the current element in the MaterialCollection.

方法

MoveNext()

将枚举数前移到集合中的下一个元素。Advances the enumerator to the next element in the collection.

Reset()

将枚举数重置至其初始位置,即位于集合中第一个元素之前。Resets the enumerator to its initial position, which is before the first element in the collection.

显式接口实现

IDisposable.Dispose()

此成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不能在代码中直接使用。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

IEnumerator.Current

此成员支持 Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) 基础结构,但不能在代码中直接使用。This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

适用于