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.

適用於

另請參閱