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

Adds a cancellation flag to a position-changing notification. The reported position depends on the event source and may be -1 when the source cannot provide a target position.

Definition

Namespace:Telerik.WinControls.UI.Data

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PositionChangingCancelEventArgs : PositionChangedEventArgs

Inheritance: objectEventArgsPositionChangedEventArgsPositionChangingCancelEventArgs

Inherited Members PositionChangedEventArgs.PositionEventArgs.Empty

Constructors

Initializes event data for a request to change to the specified position.

C#
public PositionChangingCancelEventArgs(int pos)
Parameters:posint

The position supplied by the event source; it may be -1 when a target position is unavailable.

Properties

Gets or sets whether the pending position change should be canceled.

C#
public bool Cancel { get; set; }