BuildingBlockGalleryContentControl.LockContentControl 属性

获取或设置一个值,该值指定是否可以从文档中删除 BuildingBlockGalleryContentControl

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

语法

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

属性值

类型:System.Boolean
如果不能从文档中删除 BuildingBlockGalleryContentControl,则为 true;如果可以删除该控件,则为 false。默认值为 false。

异常

异常 条件
COMException

Temporary 属性为 true 时,设置了此属性。

备注

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

.NET Framework 安全性

请参见

参考

BuildingBlockGalleryContentControl 接口

Microsoft.Office.Tools.Word 命名空间

其他资源

内容控件

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