Component.DesignMode Component.DesignMode Component.DesignMode Component.DesignMode Property

定义

获取一个值,用以指示 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.

适用于

另请参阅