Select
Select a paragraph.
Parameters:
This method doesn't have any parameters.
Returns:
- Type
-
bool
Example
Copy code
builder.CreateFile("docx");
oDocument = editor.GetDocument();
oParagraph = oDocument.GetElement(0);
oParagraph.AddText("ONLYOFFICE Document Builder");
bResult = oParagraph.Select();
if (bResult === true) {
oParagraph.SetItalic(true);
}
builder.SaveFile("docx", "Select.docx");
builder.CloseFile();
Resulting document