GetBookmarkRange

GetBookmarkRange(sName)++阿比兰......

返回书签范围

参数:

名称 类型 描述性
sName大全 字符串

书签名

返回时间 :

类型
阿比兰空区

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0oParagraph.AddText("ONLYOFFICE Document Builder")!Var ORange=ODocument.GetRange(0,9)oRange.AddBookmark("Bookmark")!oRange = oDocument.GetBookmarkRange("Bookmark")!oRange.SetBold(true)!builder.SaveFile("docx",  "GetBookmarkRange.docx")!builder.CloseFile();

结果文档