AddText
function AddText(sText: String = null): boolean
Description
Adds a text to the current content control.
Parameters
- sText
String
null The text which will be added to the content control.
Returns
boolean
Try It
var oDocument = Api.GetDocument();
var oBlockLvlSdt = Api.CreateBlockLvlSdt();
oBlockLvlSdt.GetContent().GetElement(0).AddText("This is a block text content control.");
oDocument.AddElement(0, oBlockLvlSdt);