Skip to main content

GetLength

Returns the length if the CDocBuilderValue object is an array/typed array. Otherwise, returns 0.

note

This method is not available for JS.

Syntax

def GetLength(self) -> int

Parameters

This method has no parameters.

Example

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
globalObj = context.GetGlobal()
api = globalObj["Api"]
document = api.GetDocument()
charts = document.GetAllCharts()
length = charts.GetLength()