@squareys/webdecks-sdk - v0.0.0
    Preparing search index...

    Class FindSession

    A headless find/replace session over the deck's text boxes. Created by Presentation.find. Navigation moves the current slide to each match; replace rewrites the matching text (flattening that box to uniform formatting) and repaints. The session is stateful in the engine — one is live at a time, so re-query with FindSession.refresh rather than juggling several.

    Index
    • get matchCount(): number

      The number of matches for the current query.

      Returns number

    • get currentIndex(): number

      The index of the highlighted match, or -1 when there is none.

      Returns number

    • Move to the next match (wrapping), navigating to its slide; returns whether one was found.

      Returns boolean

    • Move to the previous match (wrapping), navigating to its slide; returns whether one was found.

      Returns boolean

    • Replace the current match with replacement; returns whether a text box changed.

      Parameters

      • replacement: string

      Returns boolean

    • Replace every match with replacement; returns the number of occurrences changed.

      Parameters

      • replacement: string

      Returns number

    • Re-run the search with a new query and/or flags; returns the match count.

      Parameters

      • query: string
      • flags: number = 0

      Returns number