'Declaration Public Event Action As EventHandler(Of Viewer.ActionEventArgs)
public event EventHandler<Viewer.ActionEventArgs> Action
Event Data
The event handler receives an argument of type Viewer.ActionEventArgs containing data related to this event. The following Viewer.ActionEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Action | Gets the Action that caused the event. |
PageNumber | Gets the page number the action happened on. |
Remarks
This event is triggered for following type actions:
- GrapeCity.Viewer.Common.Model.Interactivity.HyperlinkAction
- GrapeCity.Viewer.Common.Model.Interactivity.BookmarkAction
- GrapeCity.Viewer.Common.Model.Interactivity.DrillthroughAction
- GrapeCity.Viewer.Common.Model.Interactivity.ApplyParametersAction
true
.Example
viewer.Action += (sender, e) => { // Check if there's a specific action defined if (e.Action != null) { // Implement custom action handling logic here // This could involve checking the type of action and responding accordingly Debug.WriteLine($"Handling custom action: {action.GetType().Name}"); } };
See Also