PathSegmentEnumerator Struct

Enumerates the segments of a VectorPath, without allocating. See VectorPath.EnumerateSegments.

Implements

Properties

NameDescription
CurrentGets the segment the enumerator is on.
System.Collections.IEnumerator.Current

Gets the segment the enumerator is on.

public readonly PathSegment Current { get; }

Property value

PathSegment

System.Collections.IEnumerator.Current

PathSegmentEnumerator.cs
object IEnumerator.Current { get; }

Property value

object

No documentation is available.

Methods

NameDescription
Dispose()Does nothing: the enumerator holds no resource.
GetEnumerator()Returns the enumerator itself, so that it can be used with foreach.
MoveNext()Moves to the next segment.
Reset()Moves back before the first segment.
System.Collections.Generic.IEnumerable<Meziantou.Framework.Imaging.Drawing.PathSegment>.GetEnumerator()
System.Collections.IEnumerable.GetEnumerator()

Does nothing: the enumerator holds no resource.

public readonly void Dispose()

Returns the enumerator itself, so that it can be used with foreach.

public readonly PathSegmentEnumerator GetEnumerator()

Returns

PathSegmentEnumerator A copy of this enumerator.

Moves to the next segment.

public bool MoveNext()

Returns

bool false when the path has no more segment.

Moves back before the first segment.

public void Reset()

System.Collections.Generic.IEnumerable<Meziantou.Framework.Imaging.Drawing.PathSegment>.GetEnumerator()

PathSegmentEnumerator.cs

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

PathSegmentEnumerator.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.