ContentControl.SetPlaceholderText(BuildingBlock, Range, String) Method

Definition

Sets the placeholder text that displays in the content control until a user enters their own text.

public void SetPlaceholderText (Microsoft.Office.Interop.Word.BuildingBlock BuildingBlock = default, Microsoft.Office.Interop.Word.Range Range = default, string Text = "");
abstract member SetPlaceholderText : Microsoft.Office.Interop.Word.BuildingBlock * Microsoft.Office.Interop.Word.Range * string -> unit
Public Sub SetPlaceholderText (Optional BuildingBlock As BuildingBlock = null, Optional Range As Range = null, Optional Text As String = "")

Parameters

BuildingBlock
BuildingBlock

Specifies a BuildingBlock object that contains the contents of the placeholder text.

Range
Range

Specifies a Range object that contains the contents of the placeholder text.

Text
String

Specifies the contents of the placeholder text.

Remarks

Only one of the parameters is used when specifying placeholder text. If more than one parameter is used, Microsoft Office Word uses the text specified in the first parameter. If all parameters are omitted, the placeholder text is blank.

Applies to