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

Represents a TimeSpan editor.

Definition

Constructors

C#
public BaseTimeSpanPickerEditor()

Properties

Gets TimeSpan, the value type used by this editor.

C#
public override Type DataType { get; }

Overrides: BaseInputEditor.DataType

Gets the time-span picker element created for this editor.

C#
protected RadTimeSpanPickerElement TimeSpanPickerElement { get; }

Gets or sets the value displayed by the hosted time-span picker.

C#
public override object Value { get; set; }

Overrides: BaseInputEditor.Value

Methods

Copies the editor's right-to-left setting to the picker, selects the first editable mask segment, focuses the input, and connects edit-session events.

C#
public override void BeginEdit()

Overrides: BaseInputEditor.BeginEdit()

Creates the picker element used to edit a TimeSpan value.

C#
protected override RadElement CreateEditorElement()
Returns:

RadElement

Overrides: BaseInputEditor.CreateEditorElement()

Removes the keyboard, focus, value, popup, and validation-state handlers, then adds another validation-error handler. Repeated sessions can therefore accumulate validation-error callbacks.

C#
public override bool EndEdit()
Returns:

bool

The result returned by the base editor.

Overrides: BaseInputEditor.EndEdit()

Receives key input from the hosted masked text box; override to handle time-span-specific keys. The base implementation does nothing.

C#
protected virtual void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs

The key event data.

Called when the hosted text box loses focus while the picker popup is closed. Override to respond to focus leaving the time-span input; the base implementation does nothing.

C#
protected virtual void OnLostFocus()