MAIDR JavaScript API
    Preparing search index...

    Interface WordRequestContext

    A Word batch's request context (Word.RequestContext).

    interface WordRequestContext {
        document: { body: WordRange; getSelection: () => WordRange };
        sync: () => Promise<unknown>;
    }
    Index

    Properties

    Properties

    document: { body: WordRange; getSelection: () => WordRange }

    Type Declaration

    • Readonlybody: WordRange

      The document's body (WordApi 1.1).

    • getSelection: () => WordRange

      The current selection (WordApi 1.1).

    sync: () => Promise<unknown>