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

Defines the value, component, and popup-content operations used by a time-span picker.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public interface ITimeSpanPickerContentElement

Properties

Gets the collection of time-unit components displayed in the popup.

C#
RadItemOwnerCollection Components { get; }

Gets or sets the upper bound used when preparing the popup's time-unit components.

C#
TimeSpan MaxValue { get; set; }

Gets or sets the lower bound used when preparing the popup's time-unit components.

C#
TimeSpan MinValue { get; set; }

Gets or sets whether value assignments to the popup content are ignored.

C#
bool ReadOnly { get; set; }

Gets or sets the popup's time-span value; assignments are ignored while ReadOnly is true.

C#
TimeSpan Value { get; set; }

Methods

Resets each unit component to its minimum value.

C#
void ClearSelection()

Measures the popup content and returns its desired size.

C#
Size GetDesiredSize(bool invalidate)
Parameters:invalidatebool

true to invalidate the current measure before measuring.

Returns:

Size

The desired size of the content.

Prepares component bounds, choices, and localization for the owner's current format.

C#
void PrepareContent()

Selects the supplied value, or resets each unit component from MinValue when the value is null.

C#
void SetSelected(TimeSpan? value)
Parameters:valueTimeSpan?

The value to select, or null to reset each component from MinValue.

Applies a time span to each unit component so the popup reflects that value.

C#
void SetValue(TimeSpan value)
Parameters:valueTimeSpan

The value to distribute across the components.

Refreshes localized text in the popup footer and unit components.

C#
void UpdateLocalization()

Combines the selected unit values and updates the owner's time-span value.

C#
void UpdateOwnerValue()

Events

Occurs when a time-unit component has been created and can be replaced before it is added to the popup.

C#
event TimeSpanPickerComponentCreatedEventHandler ComponentCreated

Occurs after the components for the current format have been created.

C#
event EventHandler ComponentsCreated