Word.Interfaces.BuildingBlockGalleryContentControlData interface
一个接口,用于描述通过调用 buildingBlockGalleryContentControl.toJSON()返回的数据。
属性
| appearance | 指定内容控件的外观。 |
| building |
指定构建基块内容控件的类别。 |
| building |
指定一个 |
| color | 指定内容控件颜色的红-绿-蓝 (RGB) 值。 可以采用“#RRGGBB”格式提供值。 |
| id | 获取内容控件的标识。 |
| is |
指定当用户编辑控件的内容时是否从活动文档中删除内容控件。 |
| level | 获取内容控件的级别 - 内容控件是包围文本、段落、表格单元格还是表行;或内联时。 |
| lock |
指定内容控件是否锁定 (无法) 删除。
|
| lock |
指定内容控件的内容是否锁定 (不可编辑) 。
|
| placeholder |
返回一个 |
| range | 返回一个 |
| showing |
获取是否正在显示内容控件的占位符文本。 |
| tag | 指定用于标识内容控件的标记。 |
| title | 指定内容控件的标题。 |
| xml |
返回一个 |
属性详细信息
appearance
指定内容控件的外观。
appearance?: Word.ContentControlAppearance | "BoundingBox" | "Tags" | "Hidden";
属性值
Word.ContentControlAppearance | "BoundingBox" | "Tags" | "Hidden"
注解
buildingBlockCategory
buildingBlockType
指定一个 BuildingBlockType 值,该值表示构建基块内容控件的构建基块的类型。
buildingBlockType?: Word.BuildingBlockType | "QuickParts" | "CoverPage" | "Equations" | "Footers" | "Headers" | "PageNumber" | "Tables" | "Watermarks" | "AutoText" | "TextBox" | "PageNumberTop" | "PageNumberBottom" | "PageNumberPage" | "TableOfContents" | "CustomQuickParts" | "CustomCoverPage" | "CustomEquations" | "CustomFooters" | "CustomHeaders" | "CustomPageNumber" | "CustomTables" | "CustomWatermarks" | "CustomAutoText" | "CustomTextBox" | "CustomPageNumberTop" | "CustomPageNumberBottom" | "CustomPageNumberPage" | "CustomTableOfContents" | "Custom1" | "Custom2" | "Custom3" | "Custom4" | "Custom5" | "Bibliography" | "CustomBibliography";
属性值
Word.BuildingBlockType | "QuickParts" | "CoverPage" | "Equations" | "Footers" | "Headers" | "PageNumber" | "Tables" | "Watermarks" | "AutoText" | "TextBox" | "PageNumberTop" | "PageNumberBottom" | "PageNumberPage" | "TableOfContents" | "CustomQuickParts" | "CustomCoverPage" | "CustomEquations" | "CustomFooters" | "CustomHeaders" | "CustomPageNumber" | "CustomTables" | "CustomWatermarks" | "CustomAutoText" | "CustomTextBox" | "CustomPageNumberTop" | "CustomPageNumberBottom" | "CustomPageNumberPage" | "CustomTableOfContents" | "Custom1" | "Custom2" | "Custom3" | "Custom4" | "Custom5" | "Bibliography" | "CustomBibliography"
注解
color
指定内容控件颜色的红-绿-蓝 (RGB) 值。 可以采用“#RRGGBB”格式提供值。
color?: string;
属性值
string
注解
id
isTemporary
level
获取内容控件的级别 - 内容控件是包围文本、段落、表格单元格还是表行;或内联时。
level?: Word.ContentControlLevel | "Inline" | "Paragraph" | "Row" | "Cell";
属性值
Word.ContentControlLevel | "Inline" | "Paragraph" | "Row" | "Cell"
注解
lockContentControl
指定内容控件是否锁定 (无法) 删除。
true 表示用户无法从活动文档中删除它, false 表示可以将其删除。
lockContentControl?: boolean;
属性值
boolean
注解
lockContents
指定内容控件的内容是否锁定 (不可编辑) 。
true 表示用户无法编辑内容, false 表示内容可编辑。
lockContents?: boolean;
属性值
boolean
注解
placeholderText
返回一个 BuildingBlock 对象,该对象代表内容控件的占位符文本。
placeholderText?: Word.Interfaces.BuildingBlockData;
属性值
注解
range
返回一个 Range 对象,该对象表示活动文档中的内容控件的内容。
range?: Word.Interfaces.RangeData;
属性值
注解
showingPlaceholderText
tag
title
xmlMapping
返回一个 XmlMapping 对象,该对象表示内容控件到文档数据存储中的 XML 数据的映射。
xmlMapping?: Word.Interfaces.XmlMappingData;