SetCaps
function SetCaps(isCaps: boolean = null): ApiTextPr
Description
Specifies that any lowercase characters in the text run are formatted for display only as their capital letter character equivalents.
Parameters
- isCaps
boolean
null Specifies that the contents of the current run are displayed capitalized.
Returns
ApiTextPr
Try It
var oDocument = Api.GetDocument();
var oTextPr = oDocument.GetDefaultTextPr();
oTextPr.SetCaps(true);
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("A sample text set to capital letters using the text properties.");