Component.DesignMode 属性

定义

获取一个值,用以指示 Component 当前是否处于设计模式。Gets a value that indicates whether the Component is currently in design mode.

protected:
 property bool DesignMode { bool get(); };
[System.ComponentModel.Browsable(false)]
protected bool DesignMode { get; }
member this.DesignMode : bool
Protected ReadOnly Property DesignMode As Boolean

属性值

如果 true 处于设计模式,则为 Component;否则为 falsetrue if the Component is in design mode; otherwise, false.

属性

注解

设计模式指示器存储在 ISite中;因此,如果 Component 没有与之相关联的 ISite,则 false此属性的值。The design mode indicator is stored in the ISite; therefore, if the Component does not have an ISite associated with it, the value of this property is false.

适用于

另请参阅