CancelMouseEventArgs.Cancel Property

CancelMouseEventArgs.Cancel Property

Gets or sets a value that indicates whether the mouse event is canceled for the parent control.

Definition

Visual Basic .NET Public Property Cancel As Boolean
C# public bool Cancel { get; set; }
Managed C++ public: __property bool* get_Cancel();
public: __property void set_Cancel(bool*);

Property Value

System.Boolean. Whether the mouse event is canceled for the parent control.

This property is read/write.

true The mouse event is canceled.
false Default. The mouse event is not canceled.