PdfContentString.Enumerator Struct
Supports iterating over a PdfContentString and reading its individual glyphs (PdfContentChars).
public struct Enumerator : IEnumerator<PdfContentChar>, IDisposable, IEnumerator
Public Structure Enumerator
Implements IEnumerator(Of PdfContentChar), IDisposable, IEnumerator
Implements
System.Collections.Generic.IEnumerator<PdfContentChar>
System.IDisposable
System.Collections.IEnumerator
Properties
Current
Gets the currently referenced glyph (PdfContentChar) in the PdfContentString enumerated by this PdfContentString.Enumerator.
public readonly PdfContentChar Current { get; }
Public ReadOnly Property Current As PdfContentChar
Property Value
The glyph (PdfContentChar) currently referenced by this PdfContentString.Enumerator.
Methods
Dispose()
Releases all resources used by the PdfContentString.Enumerator.
MoveNext()
Advances the PdfContentString.Enumerator to the next glyph (PdfContentChar) of the PdfContentString.
Returns
- System.Boolean
true if the PdfContentString.Enumerator was successfully advanced to the next glyph (PdfContentChar); false if the PdfContentString.Enumerator has passed the end of the PdfContentString.
Exceptions
- System.InvalidOperationException
The PdfTextContent was modified after the PdfContentString.Enumerator was created.
Implements
System.Collections.Generic.IEnumerator<T>
System.IDisposable
System.Collections.IEnumerator