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