Class Clock
Inheritance
System.Object
Clock
Assembly: Syncfusion.Tools.Windows.dll
public class Clock : Control, IVisualStyle
Constructors
Declaration
Fields
RemainderTime
Declaration
public EventHandler RemainderTime
Field Value
Type |
Description |
System.EventHandler |
|
Declaration
Field Value
Type |
Description |
System.EventHandler |
|
Declaration
Field Value
Type |
Description |
System.Windows.Forms.Timer |
|
Properties
Gets or Sets the alignment of AMorPM.
Declaration
public Align AlignAMorPM { get; set; }
Property Value
Declaration
public override Color BackColor { get; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Gets or Sets control back color
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Gets/Sets Control size before touch enabled
Declaration
public Size BeforeTouchSize { get; set; }
Property Value
Type |
Description |
System.Drawing.Size |
|
Gets or Sets the border color.
Declaration
public Color BorderColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Gets / sets the value for Clock format
Support only for digital clock
Declaration
public string ClockFormat { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets /sets the value for digital clock frame
Support only for digital clock
Declaration
public ClockFrames ClockFrame { get; set; }
Property Value
Gets /sets the value for digital clock shape
Support only for digital clock
Declaration
public ClockShapes ClockShape { get; set; }
Property Value
Gets /sets the clock type
Declaration
public ClockTypes ClockType { get; set; }
Property Value
Gets/ sets the value to CurrentDateTime
Supports for both analog and digital clock
Declaration
public DateTime CurrentDateTime { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
Gets/sets the value for CustomTime
Supports for both analog and digital clock
Declaration
public DateTime CustomTime { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
Gets or Sets the digital clock renderer.
Declaration
public IDigitalClockRenderer DigitalRenderer { get; set; }
Property Value
Gets/Sets the value for DigitalClock Date
Declaration
public bool DisplayDates { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
EnableRemainder
Enable of Disable remainder.
Declaration
public bool EnableRemainder { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or Sets the touch mode
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or Sets the second color of the gradient background.
Declaration
public Color EndGradientBackColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Declaration
public override Font Font { get; set; }
Property Value
Type |
Description |
System.Drawing.Font |
|
Gets / sets the value for digital clock text color
Support only for digital clock
Declaration
public override Color ForeColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Gets or Sets the color of the hour hand.
Declaration
public Color HourHandColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Specifies the thickness of the hour hand.
Declaration
public float HourHandThickness { get; set; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public Image Image { get; set; }
Property Value
Type |
Description |
System.Drawing.Image |
|
Specifies the thickness of the minutes.
Declaration
public bool IsTransparent { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or Sets the color of the minutes.
Declaration
public Color MinuteColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Gets or Sets the color of the minute hand.
Declaration
public Color MinuteHandColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Specifies the thickness of the minutee hand.
Declaration
public float MinuteHandThickness { get; set; }
Property Value
Type |
Description |
System.Single |
|
Specifies the thickness of the minutes.
Declaration
public float MinuteThickness { get; set; }
Property Value
Type |
Description |
System.Single |
|
Gets or Sets the current time.
Declaration
public DateTime Now { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
Remainder
Gets or Sets the date time for remainder.
Declaration
public DateTime Remainder { get; set; }
Property Value
Type |
Description |
System.DateTime |
|
Gets or Sets the renderer.
Declaration
public IClockRenderer Renderer { get; set; }
Property Value
Gets or Sets the color of the second hand.
Declaration
public Color SecondHandColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Specifies the thickness of the second hand.
Declaration
public float SecondHandThickness { get; set; }
Property Value
Type |
Description |
System.Single |
|
Marked as Obsolete. Please use ShowHourDesignator instead.
Declaration
[Obsolete("Please use ShowHourDesignator instead.")]
public bool ShowAMorPM { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool ShowBorder { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Show/Hide the Digital Clock Frame
Support only for digital clock
Declaration
public bool ShowClockFrame { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets/ sets the value to Show/Hide the custom time clock
Supports for both analog and digital clock
Declaration
public bool ShowCustomTimeClock { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets a value to show/hide the HourDesignator.
Declaration
public bool ShowHourDesignator { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Show or Hide the minutes.
Declaration
public bool ShowMinute { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Show or Hide the second hand.
Declaration
public bool ShowSecondHand { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or Sets the first color of the gradient background.
Declaration
public Color StartGradientBackColor { get; set; }
Property Value
Type |
Description |
System.Drawing.Color |
|
Declaration
public bool StopTimer { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Specifies the visual style.
Declaration
public ClockVisualStyle VisualStyle { get; set; }
Property Value
Methods
Declaration
public void ApplyScaleToControl(float scaleFactor)
Parameters
Type |
Name |
Description |
System.Single |
scaleFactor |
|
Overrides the AccessibleObject.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
Description |
System.Windows.Forms.AccessibleObject |
The TreeViewAdv that owns the TreeViewAdvAcessibleObject.
|
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Get rounded region for the digital clock
Declaration
public GraphicsPath GetRoundedregion(float x, float y, float width, float height, float radius)
Parameters
Type |
Name |
Description |
System.Single |
x |
begining x-co-ordinate points for digital clock
|
System.Single |
y |
begining y-co-ordinate points for digital clock
|
System.Single |
width |
Used for measuring the region
|
System.Single |
height |
Used for measuring the region
|
System.Single |
radius |
Used for measuring the region
|
Returns
Type |
Description |
System.Drawing.Drawing2D.GraphicsPath |
returns rounded region
|
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
protected override void OnRegionChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnResize(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected void OnValueChanged(DateTime ClockDateTime)
Parameters
Type |
Name |
Description |
System.DateTime |
ClockDateTime |
|
Declaration
protected bool ShouldSerializeAlignAMorPM()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeBorderColor()
Returns
Type |
Description |
System.Boolean |
|
ShouldSerializeEnableRemainder()
Declaration
protected bool ShouldSerializeEnableRemainder()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeEndGradientBackColor()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeHourHandColor()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeHourHandThickness()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeImage()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeIsTransparent()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeMinuteColor()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeMinuteHandColor()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeMinuteHandThickness()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeMinuteThickness()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeSecondHandColor()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeSecondHandThickness()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeShowAMorPM()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeShowBorder()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeShowMinute()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeShowSecondHand()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeStartGradientBackColor()
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool ShouldSerializeVisualStyle()
Returns
Type |
Description |
System.Boolean |
|
Events
Declaration
public event Clock.ValueChangedEventHandler ValueChanged
Event Type
Explicit Interface Implementations
Gets or sets the VisualTheme.
Declaration
string IVisualStyle.VisualTheme { get; set; }
Returns
Type |
Description |
System.String |
|
Implements