BuildingBlockGalleryContentControl.SetPlaceholderText 方法

定义

BuildingBlockRange 或字符串中的文本显示为 BuildingBlockGalleryContentControl 中的占位符文本。

public void SetPlaceholderText (Microsoft.Office.Interop.Word.BuildingBlock BuildingBlock = null, Microsoft.Office.Interop.Word.Range Range = null, string Text = "");

参数

BuildingBlock
BuildingBlock

包含占位符文本的 BuildingBlock

Range
Range

包含占位符文本的 Range

Text
String

占位符文本。

注解

占位符文本在用户选择某一构建基块或用数据源中的数据填充控件之前显示。

调用方法时仅使用其中一个参数 SetPlaceholderText 。 如果指定了多个参数,则 Microsoft Office Word 使用第一个指定的参数。 如果省略所有参数,则占位符文本为空字符串。

若要获取的占位符文本 BuildingBlockGalleryContentControl ,请使用 PlaceholderText 属性。 还可以使用此属性将占位符文本设置为字符串。

适用于