Edit

Office.BindingType enum

Specifies the type of the binding object that should be returned.

Remarks

Used by

Examples

// Create a new table binding for the selected table.
Office.context.document.bindings.addFromSelectionAsync(Office.BindingType.Table, { id: "MyTableBinding" }, function (asyncResult) {
    if (asyncResult.status === Office.AsyncResultStatus.Failed) {
        showMessage("Action failed with error: " + asyncResult.error.message);
    } else {
        showMessage("Added new binding with type: " + asyncResult.value.type + " and ID: " + asyncResult.value.id);
    }
});

Fields

Matrix

Tabular data without a header row. Data is returned as an array of arrays, for example in this form: [[row1column1, row1column2],[row2column1, row2column2]]

Table

Tabular data with a header row. Data is returned as a TableData object.

Text

Plain text. Data is returned as a run of characters.