Share via


ToolPane.ViewChangeEventHandler Delegate

Acts as an event handler delegate when the view of the ToolPane object changes.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

<AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level := AspNetHostingPermissionLevel.Minimal)> _
Public Delegate Sub ViewChangeEventHandler ( _
    sender As Object, _
    e As ToolPane.ViewChangeEventArgs _
)

Dim instance As New ViewChangeEventHandler(AddressOf HandlerMethod)
[AspNetHostingPermissionAttribute(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
public delegate void ViewChangeEventHandler(
    Object sender,
    ToolPane.ViewChangeEventArgs e
)

Parameters

Remarks

A ToolPane object can be displayed to the user in multiple views: extensible, import, navigation, closed, or others.

The ToolPane.ViewChangeEventHandler class uses infrastructural methods that are provided for delegates automatically by common language runtime.

The implementer should identify the event receiver which will act on the data from the object whose view can change. Then the implementer should create the ToolPane.ViewChangeEventHandler delegate and associate it with the event that signifies that the view has changed. The event handler is called whenever the source object causes the event to occur, until the delegate is removed.

See Also

Reference

Microsoft.SharePoint.WebPartPages Namespace

Delegate

EventHandler

ToolPane.ToolPaneView

ViewChanged

ToolPane.ViewChangeEventArgs

ViewChanging

Other Resources

Introduction to Common Language Runtime (CLR) Integration

Handling and Raising Events