ControlDesigner.HidePropertiesInTemplateMode 属性
定义
获取一个值,该值指示当控件处于模板模式时,关联控件的属性是否被隐藏。Gets a value indicating whether the properties of the associated control are hidden when the control is in template mode.
protected public:
virtual property bool HidePropertiesInTemplateMode { bool get(); };
protected internal virtual bool HidePropertiesInTemplateMode { get; }
member this.HidePropertiesInTemplateMode : bool
Protected Friend Overridable ReadOnly Property HidePropertiesInTemplateMode As Boolean
属性值
如果当控件处于模板模式时关联控件的属性被隐藏,则为 true;否则为 false。true, if the properties of the associated control are hidden when the control is in template mode; otherwise, false. 默认值为 true。The default is true.
注解
从不隐藏 ID 属性。The ID property is never hidden. PreFilterProperties HidePropertiesInTemplateMode 当控件处于模板编辑模式时,方法使用属性来确定是否应在属性网格中隐藏除 ID 属性之外的属性。The PreFilterProperties method uses the HidePropertiesInTemplateMode property to determine whether properties, other than the ID property, should be hidden from the property grids while the control is in template editing mode.