Skip to main content

CDocBuilderValue

Class used by ONLYOFFICE Document Builder for getting the results of called JS commands. It represents a wrapper for a JS object.

Syntax

class CDocBuilderValue

The CDocBuilderValue class can be created from the primitive data types:

CDocBuilderValue(value)

Where value can be: bool, int, float, str

Methods

NameDescription
CallCalls the specified Document Builder method.
ClearClears the object.
CreateArrayCreates an array value. (Python, Java only)
CreateInstanceCreates an instance of the CDocBuilderValue class. (COM only)
CreateNullCreates a null value. (not used in COM)
CreateUndefinedCreates an undefined value. (not used in COM)
GetReturns an array value by its index.
GetLengthReturns the length if this object is an array/typed array.
GetPropertyReturns a property of this object.
IsArrayReturns true if this object is an array.
IsBoolReturns true if this object is a boolean value.
IsDoubleReturns true if this object is a double value.
IsEmptyReturns true if this object is empty.
IsFunctionReturns true if this object is a function.
IsIntReturns true if this object is an integer.
IsNullReturns true if this object is null.
IsObjectReturns true if this object is an object.
IsStringReturns true if this object is a string.
IsTypedArrayReturns true if this object is a typed array. (C++, COM, .Net only)
IsUndefinedReturns true if this object is undefined.
SetSets an array value by its index.
SetPropertySets a property to this object.
ToBoolConverts this object to a boolean value.
ToDoubleConverts this object to a double value.
ToIntConverts this object to an integer.
ToStringConverts this object to a string.
note

Java uses camelCase method names: call, clear, get, getLength, etc.