Component.DesignMode Property

Definition

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

Property Value

Boolean

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

Attributes

Remarks

设计模式指示器存储在 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.

Applies to

See also