SetBold
function SetBold(isBold: boolean = null): ApiRange | "null"
Description
Sets the bold property to the text character.
Parameters
- isBold
boolean
null Specifies if the Range contents are displayed bold 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.SetBold(true);