Sets the placeholder text to the current content control.
Name | Type | Description |
sText | string | The text that will be set to the current content control. |
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oBlockLvlSdt = Api.CreateBlockLvlSdt(); oDocument.AddElement(0, oBlockLvlSdt); oBlockLvlSdt.SetPlaceholderText("Name"); builder.SaveFile("docx", "SetPlaceholderText.docx"); builder.CloseFile();