Component.DesignMode 属性

定义

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

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

属性值

Boolean

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

属性

注解

设计模式指示符存储在中, ISite 因此,如果没有 Component ISite 关联的,则此属性的值为 falseThe 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.

适用于

另请参阅