GradientStopCollection.Enumerator 结构

定义

枚举 GradientStopCollection 中的 GradientStop 项。Enumerates GradientStop items in a GradientStopCollection.

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

属性

Current

获取集合中的当前元素。Gets the current element in the collection.

方法

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 type or 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 type or member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

适用于