Returns a property of the CDocBuilderValue object.
Name | Type | Description |
name | str | The name of the CDocBuilderValue object property. |
builder = docbuilder.CDocBuilder() context = builder.GetContext() globalObj = context.GetGlobal() api = globalObj["Api"] document = api.Call("GetDocument") docPr = document.GetProperty("color")
There are two more ways to get a property of the CDocBuilderValue object:
use the Get method that takes an argument in the string format:
def Get(self, name);
builder = docbuilder.CDocBuilder() context = builder.GetContext() globalObj = context.GetGlobal() api = globalObj["Api"] document = api.Call("GetDocument") docPr = document.Get("color")
use the default[] postfix expression that takes an argument in the string format:
property CDocBuilderValue default[str]
builder = docbuilder.CDocBuilder() context = builder.GetContext() globalObj = context.GetGlobal() api = globalObj["Api"] document = api.Call("GetDocument") docPr = document["color"]