SetItalic
function SetItalic(isItalic: boolean = null): ApiRange | "null"
Description
Sets the italic property to the text character.
Parameters
- isItalic
boolean
null Specifies if the contents of the current Range are displayed italicized or not.
Returns
ApiRange | "null"
Try It
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("ONLYOFFICE Document Builder");
var oRange = oDocument.GetRange(0, 24);
oRange.SetItalic(true);