GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfContentString.Enumerator Struct

    Namespace:
    GemBox.Pdf.Content
    Assembly:
    GemBox.Pdf.dll

    Supports iterating over a PdfContentString and reading its individual glyphs (PdfContentChars).

    • C#
    • VB.NET
    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.

    • C#
    • VB.NET
    public readonly PdfContentChar Current { get; }
    Public ReadOnly Property Current As PdfContentChar
    Property Value
    PdfContentChar

    The glyph (PdfContentChar) currently referenced by this PdfContentString.Enumerator.

    Methods

    Dispose()

    Releases all resources used by the PdfContentString.Enumerator.

    • C#
    • VB.NET
    public void Dispose()
    Public Sub Dispose

    MoveNext()

    Advances the PdfContentString.Enumerator to the next glyph (PdfContentChar) of the PdfContentString.

    • C#
    • VB.NET
    public bool MoveNext()
    Public Function MoveNext As Boolean
    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
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.