SetPlaceholderText
function SetPlaceholderText(sText: string = null): boolean
Description
Sets the placeholder text to the current content control.
Parameters
- sText
string
null The text that will be set to the current content control.
Returns
boolean
Try It
var oDocument = Api.GetDocument();
var oBlockLvlSdt = Api.CreateBlockLvlSdt();
oDocument.AddElement(0, oBlockLvlSdt);
oBlockLvlSdt.SetPlaceholderText("Name");