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

RadRotator BeginRotate Event Arguments

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class BeginRotateEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsBeginRotateEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes event data for a transition between two item indices.

C#
public BeginRotateEventArgs(int from, int to)
Parameters:fromint

The current item index; -1 identifies the default item and -2 means no item is current.

toint

The requested destination index; -1 identifies the default item, and -2 is used by Goto(int) to leave no item current.

Properties

Gets the index the rotator records as current before the transition.

C#
public int From { get; }

-1 identifies the default item; -2 indicates that no item is current. After a Goto(int) handler changes To, this index can differ from the item being displayed.

Gets or sets the requested destination index for the transition.

C#
public int To { get; set; }

A BeginRotateEventHandler can change this value before the item swap. -1 identifies the default item. For a transition initiated by Goto(int), the incoming item uses this value, but CurrentIndex is set to the original Goto argument.