Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DesignMode Property
Collapse the table of content
Expand the table of content

Component.DesignMode Property

Gets a value that indicates whether the Component is currently in design mode.

[Visual Basic]
Protected ReadOnly Property DesignMode As Boolean
[C#]
protected bool DesignMode {get;}
[C++]
protected: __property bool get_DesignMode();
[JScript]
protected function get DesignMode() : Boolean;

Property Value

true, if the Component is in design mode; otherwise, false.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Component Class | Component Members | System.ComponentModel Namespace | IContainer | Container | ISite

Show:
© 2015 Microsoft