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

属性值

如果 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.

适用于

另请参阅