DsPdfJS API - v9.1.0
    Preparing search index...

    Class FieldCollection

    Represents a collection of Field objects.

    Hierarchy

    • PdfCollection<Field>
      • FieldCollection
    Index

    Accessors

    • get count(): number

      Gets the number of items in the collection.

      Returns number

    • get field(): Field | null

      Gets the Field object that owns this collection.

      Returns Field | null

    • get id(): number

      Gets the reference to the object.

      Returns number

    • get last(): TItem | null

      Gets last item in the collection.

      Returns TItem | null

    Methods

    • Clears the collection.

      Returns void

    • Determines whether the item is in the collection.

      Parameters

      Returns boolean

      true if the item is in the collection, false otherwise.

    • Searches Field with specified name, search is case sensitive.

      Parameters

      • name: string

        The field's name.

      Returns Field | null

      • Returns found Field or null if not found.
    • Detaches the object from the ObjectManager and deallocates its memory, if possible.

      Returns void

    • Gets the item with the specified index.

      Parameters

      • index: number

        The index of the item.

      Returns Field

    • Searches Field with specified name, search is case sensitive, throws an exception if a field not found.

      Parameters

      • name: string

        The field's name.

      Returns Field

      • Returns found Field, throws an exception if not found.
    • Inserts an item at a specific position in the collection.

      Parameters

      • index: number

        The position where the item will be inserted.

      • item: Field | FieldProperties

        The item to insert.

      Returns void

    • Removes the specified item from the collection.

      Parameters

      • item: Field

        The item to remove.

      Returns boolean

      true if the item was actually removed, false otherwise.

    • Removes the item at specified index.

      Parameters

      • index: number

        The index of the item to remove.

      Returns void

    • Sets the item at the specified index.

      Parameters

      • index: number

        The index of the item, starting from 0.

      • item: Field

        The object to set.

      Returns void