ISite.DesignMode 屬性

定義

判斷由類別實作時,元件是否處於設計模式。Determines whether the component is in design mode when implemented by a class.

public:
 property bool DesignMode { bool get(); };
public bool DesignMode { get; }
member this.DesignMode : bool
Public ReadOnly Property DesignMode As Boolean

屬性值

如果元件處於設計模式,則為 true,否則為 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, this property is always false.

適用於