跳到主要内容

CreateArray

Creates an array value, an analogue of new Array (length) in JS.

Please note, that for the .docbuilder file the CDocBuilderContext.CreateArray method is not used.

Syntax

def CreateArray(self, int length);

Parameters

ParameterTypeDescription
lengthintThe array length.

Example

Python

builder = docbuilder.CDocBuilder()
context = builder.GetContext()
content = context.CreateArray(1)