Sets the bold property to the text character.
Name | Type | Description |
isBold | boolean | Specifies if the Range contents are displayed bold or not. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph = oDocument.GetElement(0); oParagraph.AddText("ONLYOFFICE Document Builder"); var oRange = oDocument.GetRange(0, 24); oRange.SetBold(true); builder.SaveFile("docx", "SetBold.docx"); builder.CloseFile();