This documentation is archived and is not being maintained.

ContentControl.SetPlaceholderText Method

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

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

void SetPlaceholderText(
	BuildingBlock BuildingBlock,
	Range Range,
	string Text
)

Parameters

BuildingBlock
Type: Microsoft.Office.Interop.Word.BuildingBlock
Specifies a BuildingBlock object that contains the contents of the placeholder text.
Range
Type: Microsoft.Office.Interop.Word.Range
Specifies a Range object that contains the contents of the placeholder text.
Text
Type: System.String
Specifies the contents of the placeholder text.

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.

Show: