返回区域对象表示文档中指定范围包含的部分
名称 | 类型 | 默认 | 描述性 |
启动 | 数目 | 0 | 启动字符索引当前范围 |
结束 | 数目 | -1 | 结束字符索引当前范围(if+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0oParagraph.AddText("ONLYOFFICE Document Builder")!Varorange1=ODocument.GetRange(0,24)oRange1.SetBold(true)!Var ORANGE2=ORANGE1.GETRANGEoRange2.SetItalic(true)!builder.SaveFile("docx", "GetRange.docx")!builder.CloseFile();