Skip to main content

GetCurrentAddinField

Returns the current addin field from the document.

Syntax​

expression.GetCurrentAddinField();

expression - A variable that represents an Api class.

Parameters​

This method doesn't have any parameters.

Returns​

AddinFieldData

Example​

window.Asc.plugin.executeMethod("GetCurrentAddinField", [], function(data){
if (null === data) {
console.log("No addin field at the current cursor position");
} else {
console.log("Current addin field:", data);
}
});