共用方式為


ContentControl.PlaceholderText Property

Gets the text that is displayed in the ContentControl until the text is changed by a user action or some other operation.

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

Syntax

'Declaration
ReadOnly Property PlaceholderText As BuildingBlock
BuildingBlock PlaceholderText { get; }

Property Value

Type: Microsoft.Office.Interop.Word.BuildingBlock
The text that is displayed in the control until the text is changed by a user action or some other operation.

Remarks

The placeholder text is displayed until a user edits the control, the control is populated with data from a data source, or the control's contents are deleted.

To set the placeholder text, use the SetPlaceholderText method.

.NET Framework Security

See Also

Reference

ContentControl Interface

Microsoft.Office.Tools.Word Namespace