This documentation is archived and is not being maintained.

IControlDesignerBehavior.OnTemplateModeChanged Method

Provides an opportunity to perform processing when the designer enters or exits template mode.

[Visual Basic]
Sub OnTemplateModeChanged()
[C#]
void OnTemplateModeChanged();
[C++]
void OnTemplateModeChanged();
[JScript]
function OnTemplateModeChanged();

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.

The OnTemplateModeChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors:  When overriding OnTemplateModeChanged in a derived class, be sure to call the base class's OnTemplateModeChanged method so that registered delegates receive the event.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

IControlDesignerBehavior Interface | IControlDesignerBehavior Members | System.Web.UI.Design Namespace

Show: