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.

適用於

另請參閱