GetLength
如果 CDocBuilderValue 对象是数组,则返回其长度。否则,返回 0。
请注意,在
.docbuilder文件中不使用CDocBuilderValue.GetLength方法。
语法
def GetLength(self);
示例
Python
builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
api = globalObj["Api"]
document = api.Call("GetDocument")
charts = document.Call("GetAllCharts")
length = charts.GetLength()