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.


addHandlerAsyncMAdds an event handler to the object for the specified Office.EventType. Supported EventTypes are Office.EventType.BindingDataChanged and Office.EventType.BindingSelectionChanged.
bindingDataChangedE 
bindingSelectionChangedE 
documentPGet the Document object associated with the binding.
getDataAsyncMReturns the data contained within the binding.
idPA string that uniquely identifies this binding among the bindings in the same Office.Document object.
removeHandlerAsyncMRemoves the specified handler from the binding for the specified event type.
setDataAsyncMWrites data to the bound section of the document represented by the specified binding object.
typePGets the type of the binding.

© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext