SetBold
function SetBold(isBold: any = null): void
Description
Sets the bold property to the text character.
Parameters
- isBold
any
null Specifies that the contents of the run are displayed bold.
Returns
void
Overloads By
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.");