Skip to main content
All docs
V26.1
  • SubDocument.findFields(arg) Method

    Returns an array of fields that match the search conditions.

    Declaration

    findFields(
        arg: number | Interval
    ): Field[]

    Parameters

    Name Type Description
    arg number | Interval

    A position or interval where to search for fields.

    Returns

    Type Description
    Field[]

    An array of fields.

    Remarks

    richEdit.document.activeSubDocument.findFields(richEdit.selection.intervals[0]);
    

    You can use the fieldsInfo property to get information about all fields in the sub-document.

    Refer to the following section for more information: Access a Structural Element.

    See Also