SetBold
function SetBold(isBold: boolean = null): ApiTextPr
Description
Sets the bold property to the text character.
Parameters
- isBold
boolean
null Specifies that the contents of the run are displayed bold.
Returns
ApiTextPr
Try It
var oDocument = Api.GetDocument();
var oTextPr = oDocument.GetDefaultTextPr();
oTextPr.SetBold(true);
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("A sample text with the font weight set to bold using the text properties.");