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)
Syntax
'Declaration
Sub SetPlaceholderText ( _
BuildingBlock As BuildingBlock, _
Range As Range, _
Text As String _
)
'Usage
Dim instance As ContentControl
Dim BuildingBlock As BuildingBlock
Dim Range As Range
Dim Text As String
instance.SetPlaceholderText(BuildingBlock, _
Range, Text)
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.
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.