ISite.DesignMode Property


Determines whether the component is in design mode when implemented by a class.

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

Property Value

true if the component is in design mode; otherwise, 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.

Applies to