CreateUndefined(创建未定义值)
创建一个未定义值。此方法返回当前的上下文并调用其CreateUndefined方法。
请注意,在
.docbuilder文件中不使用CDocBuilderValue.CreateUndefined方法。
语法
static CDocBuilderValue^ CreateUndefined();
示例
.Net
string workDirectory = "C:/Program Files/ONLYOFFICE/documentBuilder";
CDocBuilder.Initialize(workDirectory);
CDocBuilder oBuilder = new CDocBuilder();
CContext oContext = oBuilder.GetContext();
CValue oGlobal = oContext.GetGlobal();
CValue oApi = oGlobal["Api"];
CValue oUndefined = oApi.CreateUndefined();
CDocBuilder.Destroy();