RadClock
Represents a clock control that displays time with customizable appearance and functionality. The control can show system time or a specific time value with optional offset support.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadClock : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadClock...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadClock class with default settings. The control is configured with auto-sizing enabled and fixed dimensions.
public RadClock()
Properties
Gets or sets a value indicating whether the control's size will be determined automatically based on the current font. When enabled, the control automatically adjusts its dimensions to accommodate the font size.
[Browsable(false)]
public override bool AutoSize { get; set; }
Overrides:
Gets the RadClockElement that encapsulates the UI representation and core functionality of the clock control.
[Browsable(false)]
public RadClockElement ClockElement { get; }
Gets the default size of the clock control.
protected override Size DefaultSize { get; }
Overrides:
Gets or sets the time offset to apply to the displayed time. This offset is added to the system time when ShowSystemTime is true.
public TimeSpan Offset { get; set; }
Gets or sets the right-to-left text direction for the control. This property is not fully supported for the clock control.
[Browsable(false)]
public override RightToLeft RightToLeft { get; set; }
Overrides:
Gets or sets a value indicating whether the clock will display the current system time. When set to true, the clock automatically updates to show the current system time.
public bool ShowSystemTime { get; set; }
Gets or sets the current time value displayed by the clock. When set to null, the clock displays the system time if ShowSystemTime is enabled.
[Browsable(true)]
public DateTime? Value { get; set; }
Methods
Creates the child elements for the clock control, specifically the RadClockElement.
protected override void CreateChildItems(RadElement parent)
The parent element to which child elements will be added.
Overrides:
Initializes the root element of the clock control with specific configuration.
protected override void InitializeRootElement(RootRadElement rootElement)
The root element to initialize.
Overrides: