PdfCoonsPatchMeshShading.Enumerator Struct
Enumerates the PdfMeshPatches of a PdfCoonsPatchMeshShading.
public struct Enumerator : IEnumerator<PdfMeshPatch>, IDisposable, IEnumerator
Public Structure Enumerator
Implements IEnumerator(Of PdfMeshPatch), IDisposable, IEnumerator
Implements
Properties
Current
Gets the PdfMeshPatch at the current position of the enumerator.
public readonly PdfMeshPatch Current { get; }
Public ReadOnly Property Current As PdfMeshPatch
Property Value
The PdfMeshPatch in the PdfCoonsPatchMeshShading at the current position of the enumerator.
Methods
Dispose()
Releases all resources used by the PdfCoonsPatchMeshShading.Enumerator.
MoveNext()
Advances the enumerator to the next PdfMeshPatch of the PdfCoonsPatchMeshShading.
Returns
- System.Boolean
true if the enumerator was successfully advanced to the next PdfMeshPatch; false if the enumerator has passed the end of the mesh.
Exceptions
- System.InvalidOperationException
The shading mesh data was modified after the enumerator was created.
- System.InvalidOperationException
The shading mesh starts with a patch that shares an edge with a previous, non-existing, patch.
- System.InvalidOperationException
Shading mesh contains an invalid PdfMeshSharedEdge value. Supported values are: None, Edge1, Edge2, and Edge3.