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