SetPlaceholderText
function SetPlaceholderText(sText: string = null): boolean
Description
Sets the placeholder text to the current inline content control. Can't be set to checkbox or radio button*
Parameters
- sText
string
null The text that will be set to the current inline content control.
Returns
boolean
Try It
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
var oInlineLvlSdt = Api.CreateInlineLvlSdt();
oParagraph.AddInlineLvlSdt(oInlineLvlSdt);
oInlineLvlSdt.SetPlaceholderText("Custom placeholder");