BuildingBlockGalleryContentControl.LockContents 属性

获取或设置一个值,该值指定 BuildingBlockGalleryContentControl 的内容是否可以编辑。

命名空间:  Microsoft.Office.Tools.Word
程序集:  Microsoft.Office.Tools.Word(在 Microsoft.Office.Tools.Word.dll 中)

语法

声明
Property LockContents As Boolean
    Get
    Set
bool LockContents { get; set; }

属性值

类型:System.Boolean
如果不能编辑 BuildingBlockGalleryContentControl 的内容,则为 true;如果可以编辑其内容,则为 false。默认值为 false。

备注

若要防止用户从文档中删除 BuildingBlockGalleryContentControl,请使用 LockContentControl 属性。 有关如何使用 BuildingBlockGalleryContentControl 保护文档的某个部分的更多信息,请参见内容控件如何:使用内容控件保护文档的某些部分

.NET Framework 安全性

请参见

参考

BuildingBlockGalleryContentControl 接口

Microsoft.Office.Tools.Word 命名空间

其他资源

内容控件

如何:使用内容控件保护文档的某些部分