A preview event adds a Cancel property to an existing event. Preview events are
fired before event processing (OnMouseDown, OnPaint, etc.) gets invoked. They
are first fired for the top-most interactor in the visual tree (a document interactor),
then for the childs that the event applies to, etc. At any point, the preview event
may be cancelled. This means that the event will not be processed by the corresponding
interactor, nor by its children. Eventually, the event will be processed by the
bottom-most (= most specific) interactor for which the event was not cancelled.
Namespace: TallComponents.Interaction.WinForms.EventsAssembly: TallComponents.PDF.Controls.WinForms (in TallComponents.PDF.Controls.WinForms.dll) Version: 2.0.46.0
Syntax
| C# |
|---|
public class PreviewEvent<EventType> : EventArgs |
| Visual Basic |
|---|
Public Class PreviewEvent(Of EventType) _ Inherits EventArgs |
Type Parameters
- EventType
- The type of event that this is the preview event of.
Inheritance Hierarchy
System..::..Object
System..::..EventArgs
TallComponents.Interaction.WinForms.Events..::..PreviewEvent<(Of <(<'EventType>)>)>
System..::..EventArgs
TallComponents.Interaction.WinForms.Events..::..PreviewEvent<(Of <(<'EventType>)>)>