MAIDR JavaScript API
    Preparing search index...

    Interface OfficeDocument

    The open document (Office.Document).

    interface OfficeDocument {
        getFileAsync?: (
            fileType: string,
            options: { sliceSize: number },
            callback: (result: OfficeAsyncResult<OfficeFile>) => void,
        ) => void;
        addHandlerAsync?: (
            eventType: string,
            handler: () => void,
            callback?: (result: OfficeAsyncResult<void>) => void,
        ) => void;
        removeHandlerAsync?: (
            eventType: string,
            options: { handler: () => void },
            callback?: (result: OfficeAsyncResult<void>) => void,
        ) => void;
    }
    Index

    Properties

    getFileAsync?: (
        fileType: string,
        options: { sliceSize: number },
        callback: (result: OfficeAsyncResult<OfficeFile>) => void,
    ) => void

    The document's file (File requirement set): compressed is the Open XML package, which PowerPoint gives on every platform.

    addHandlerAsync?: (
        eventType: string,
        handler: () => void,
        callback?: (result: OfficeAsyncResult<void>) => void,
    ) => void

    Register a handler for a document event, such as documentSelectionChanged.

    removeHandlerAsync?: (
        eventType: string,
        options: { handler: () => void },
        callback?: (result: OfficeAsyncResult<void>) => void,
    ) => void

    Remove a handler registered by addHandlerAsync.