通过当前选择返回区域对象
这种方法没有任何参数
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0var ORun1=api.CreateRunoRun1.AddText("ONLYOFFICE Document Builder.")!oParagraph.AddElement(oRun1)!Var ORun2=Api.CreateRunORUN2.AddTextoParagraph.AddElement(oRun2)!ORUN1.SweetVar ORange=ODocument.GetRangeBySweetoRange.SetBold(true)!builder.SaveFile("docx", "GetRangeBySelect.docx")!builder.CloseFile();