Call
def Call(self, name: str, *args: CDocBuilderValue)
Description
Calls the specified Document Builder method. See the Text document API, Spreadsheet API, Presentation API or Form API sections for more information which methods are available for various document types.
Please note, that for the
.docbuilder
file theCDocBuilderValue.Call
method is not used explicitly. The method itself is used instead. See the example below.
Parameters
- name
str
- The name of the Document Builder method.
- args
CDocBuilderValue
- The parameters that the Document Builder method takes as arguments.
Example
Python
builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
api = globalObj["Api"]
document = api.Call("GetDocument")
.docbuilder
const oDocument = Api.GetDocument()