XLL+ Class Library (6.3)

CXllApp::SelectionChangeEvent

Gets a reference to the SelectionChange event

CXlSelectionChangeEvent& SelectionChangeEvent( );

Return Value

The function returns a reference to the application's SelectionChange event, which is of type CXlSelectionChangeEvent.

Remarks

The SelectionChange event is raised when Excel's active cell selection is changed. All registered observers receive the event via the CXlEventObserver::Update method.

When observers are notified, an argument of type CXlRangeEventArgs is passed.

Registration

Observers can register for this event at any point in the life of the XLL. Registration can be done explicitly using Register, or automatically by creating an instance of CXlSelectionChangeEventStaticObserver.

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | Events