New to Telerik UI for WinForms? Start a free 30-day trial

Carries cancellation state and the values reported when a thumb drag completes.

The Spreadsheet margin thumb raises this event on left-button release with Canceled set to false; it passes the release coordinates as the horizontal and vertical change values.

Definition

Namespace:Telerik.WinControls.Spreadsheet.UI

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public class DragCompletedEventArgs : EventArgs

Inheritance: objectEventArgsDragCompletedEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes completion data with zero change values.

C#
public DragCompletedEventArgs(bool canceled)
Parameters:canceledbool

true if the drag was canceled; otherwise, false.

Initializes completion data with the values reported by the drag source.

C#
public DragCompletedEventArgs(double horizontalChange, double verticalChange, bool canceled)
Parameters:horizontalChangedouble

The horizontal value reported at completion.

verticalChangedouble

The vertical value reported at completion.

canceledbool

true if the drag was canceled; otherwise, false.

Properties

Gets whether the drag was canceled.

C#
public bool Canceled { get; }

Gets the horizontal value reported at completion; the built-in thumb supplies its mouse-release X coordinate.

C#
public double HorizontalChange { get; }

Gets the vertical value reported at completion; the built-in thumb supplies its mouse-release Y coordinate.

C#
public double VerticalChange { get; }