Common API - Office.Binding
Represents a binding to a section
The Binding object exposes the functionality possessed by all bindings regardless of type.
The Binding object is never called directly. It is the abstract parent class of the objects that represent each type of binding: Office.MatrixBinding, Office.TableBinding, or Office.TextBinding. All three of these objects inherit the getDataAsync and setDataAsync methods from the Binding object that enable to you interact with the data in the binding. They also inherit the id and type properties for querying those property values. Additionally, the MatrixBinding and TableBinding objects expose additional methods for matrix- and table-specific features, such as counting the number of rows and columns.
let myvar: Office.Binding
|addHandlerAsync||M||Adds an event handler to the object for the specified Office.EventType. Supported EventTypes are Office.EventType.BindingDataChanged and Office.EventType.BindingSelectionChanged.|
|document||P||Get the Document object associated with the binding.|
|getDataAsync||M||Returns the data contained within the binding.|
|id||P||A string that uniquely identifies this binding among the bindings in the same Office.Document object.|
|removeHandlerAsync||M||Removes the specified handler from the binding for the specified event type.|
|setDataAsync||M||Writes data to the bound section of the document represented by the specified binding object.|
|type||P||Gets the type of the binding.|
© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext