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

Edits the interval for an hourly Scheduler recurrence rule.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class HourlyRecurrenceSettings : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlUserControlHourlyRecurrenceSettings...

Implements: IBindableComponentIComponentIContainerControlIDisposableIDropTargetISynchronizeInvokeIWin32Window...

Constructors

Creates the hourly recurrence settings page.

C#
public HourlyRecurrenceSettings()

Creates the hourly recurrence settings page with the supplied scheduler data context.

C#
public HourlyRecurrenceSettings(ISchedulerData schedulerData)
Parameters:schedulerDataISchedulerData

The scheduler data context associated with the recurrence editor.

Fields

C#
public RadLabel labelEvery
C#
public RadLabel labelHours
C#
public RadSpinEditor spinInterval

Methods

Determines whether this page can display the supplied rule.

C#
public bool CanShowRecurrenceRule(RecurrenceRule recurrenceRule)
Parameters:recurrenceRuleRecurrenceRule

The rule to test.

Returns:

bool

true when the rule frequency is Hourly.

Clean up any resources being used.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true if managed resources should be disposed; otherwise, false.

Overrides: ContainerControl.Dispose(bool)

Creates an hourly rule using the interval currently shown in the control.

C#
public RecurrenceRule GetRecurrenceRule()
Returns:

RecurrenceRule

The hourly recurrence rule represented by the control.

Indicates that this page does not impose additional recurrence-rule validation.

C#
public bool IsValidRecurrenceRule()
Returns:

bool

Always true.

Applies localized captions to the hourly interval controls.

C#
protected virtual void LocalizeControl()

Loads the rule's interval into the hourly interval control.

C#
public void ShowRecurrenceRule(RecurrenceRule recurrenceRule, CultureInfo culture)
Parameters:recurrenceRuleRecurrenceRule

The rule whose interval should be displayed.

cultureCultureInfo

The culture associated with the scheduler.