Class PopupCancelEventArgs
Arguments to a PopupCancelEvent. Provides a reference to the popup form that is to be closed and allows the operation to be cancelled.
Inheritance
System.Object
System.EventArgs
PopupCancelEventArgs
Namespace: FastReport.Controls
Assembly: FastReport.dll
Syntax
public class PopupCancelEventArgs : EventArgs
Constructors
PopupCancelEventArgs(Form, Point)
Constructs a new instance of this class.
Declaration
public PopupCancelEventArgs(Form popup, Point location)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Form | popup | The popup form |
System.Drawing.Point | location | The mouse location, if any, where the mouse event that would cancel the popup occured. |
Properties
Cancel
Gets/sets whether to cancel closing the form. Set to
true
to prevent the popup from being closed.
Declaration
public bool Cancel { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CursorLocation
Gets the location that the mouse down which would cancel this popup occurred
Declaration
public Point CursorLocation { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Point |
Popup
Gets the popup form
Declaration
public Form Popup { get; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.Form |