MAIDR JavaScript API
    Preparing search index...

    A document's file, open for reading in slices (Office.File).

    interface OfficeFile {
        size: number;
        sliceCount: number;
        getSliceAsync: (
            index: number,
            callback: (result: OfficeAsyncResult<OfficeSlice>) => void,
        ) => void;
        closeAsync: (callback?: (result: OfficeAsyncResult<void>) => void) => void;
    }
    Index

    Properties

    size: number

    The file's size, in bytes.

    sliceCount: number
    getSliceAsync: (
        index: number,
        callback: (result: OfficeAsyncResult<OfficeSlice>) => void,
    ) => void
    closeAsync: (callback?: (result: OfficeAsyncResult<void>) => void) => void

    Close the file; only so many can be open at once.