Call
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
.docbuilderfile theCDocBuilderValue.Callmethod is not used explicitly. The method itself is used instead. See the example below.
Syntax
def Call(self, str name, CDocBuilderValue *args);
Parameters
| Parameter | Type | Description |
|---|---|---|
| name | str | The name of the Document Builder method. |
| *args | CDocBuilderValue | The parameters that the Document Builder method takes as arguments. |
Example
- Python
- .docbuilder
builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
api = globalObj["Api"]
document = api.Call("GetDocument")
let doc = Api.GetDocument();