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
Declaration
Field Value
Declaration
Field Value
Type |
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 |
System.Drawing.Color |
Gets or Sets control back color
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets/Sets Control size before touch enabled
Declaration
public Size BeforeTouchSize { get; set; }
Property Value
Gets or Sets the border color.
Declaration
public Color BorderColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets / sets the value for Clock format
Support only for digital clock
Declaration
public string ClockFormat { get; set; }
Property Value
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
Gets/sets the value for CustomTime
Supports for both analog and digital clock
Declaration
public DateTime CustomTime { get; set; }
Property Value
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
EnableRemainder
Enable of Disable remainder.
Declaration
public bool EnableRemainder { get; set; }
Property Value
Gets or Sets the touch mode
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Gets or Sets the second color of the gradient background.
Declaration
public Color EndGradientBackColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Declaration
public override Font Font { get; set; }
Property Value
Gets / sets the value for digital clock text color
Support only for digital clock
Declaration
public override Color ForeColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the color of the hour hand.
Declaration
public Color HourHandColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Specifies the thickness of the hour hand.
Declaration
public float HourHandThickness { get; set; }
Property Value
Declaration
public Image Image { get; set; }
Property Value
Type |
System.Drawing.Image |
Specifies the thickness of the minutes.
Declaration
public bool IsTransparent { get; set; }
Property Value
Gets or Sets the color of the minutes.
Declaration
public Color MinuteColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or Sets the color of the minute hand.
Declaration
public Color MinuteHandColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Specifies the thickness of the minutee hand.
Declaration
public float MinuteHandThickness { get; set; }
Property Value
Specifies the thickness of the minutes.
Declaration
public float MinuteThickness { get; set; }
Property Value
Gets or Sets the current time.
Declaration
public DateTime Now { get; set; }
Property Value
Remainder
Gets or Sets the date time for remainder.
Declaration
public DateTime Remainder { get; set; }
Property Value
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 |
System.Drawing.Color |
Specifies the thickness of the second hand.
Declaration
public float SecondHandThickness { get; set; }
Property Value
Marked as Obsolete. Please use ShowHourDesignator instead.
Declaration
[Obsolete("Please use ShowHourDesignator instead.")]
public bool ShowAMorPM { get; set; }
Property Value
Declaration
public bool ShowBorder { get; set; }
Property Value
Show/Hide the Digital Clock Frame
Support only for digital clock
Declaration
public bool ShowClockFrame { get; set; }
Property Value
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
Gets or sets a value to show/hide the HourDesignator.
Declaration
public bool ShowHourDesignator { get; set; }
Property Value
Show or Hide the minutes.
Declaration
public bool ShowMinute { get; set; }
Property Value
Show or Hide the second hand.
Declaration
public bool ShowSecondHand { get; set; }
Property Value
Gets or Sets the first color of the gradient background.
Declaration
public Color StartGradientBackColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Declaration
public bool StopTimer { get; set; }
Property Value
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
Declaration
protected bool ShouldSerializeBorderColor()
Returns
ShouldSerializeEnableRemainder()
Declaration
protected bool ShouldSerializeEnableRemainder()
Returns
Declaration
protected bool ShouldSerializeEndGradientBackColor()
Returns
Declaration
protected bool ShouldSerializeHourHandColor()
Returns
Declaration
protected bool ShouldSerializeHourHandThickness()
Returns
Declaration
protected bool ShouldSerializeImage()
Returns
Declaration
protected bool ShouldSerializeIsTransparent()
Returns
Declaration
protected bool ShouldSerializeMinuteColor()
Returns
Declaration
protected bool ShouldSerializeMinuteHandColor()
Returns
Declaration
protected bool ShouldSerializeMinuteHandThickness()
Returns
Declaration
protected bool ShouldSerializeMinuteThickness()
Returns
Declaration
protected bool ShouldSerializeSecondHandColor()
Returns
Declaration
protected bool ShouldSerializeSecondHandThickness()
Returns
Declaration
protected bool ShouldSerializeShowAMorPM()
Returns
Declaration
protected bool ShouldSerializeShowBorder()
Returns
Declaration
protected bool ShouldSerializeShowMinute()
Returns
Declaration
protected bool ShouldSerializeShowSecondHand()
Returns
Declaration
protected bool ShouldSerializeStartGradientBackColor()
Returns
Declaration
protected bool ShouldSerializeVisualStyle()
Returns
Events
Declaration
public event Clock.ValueChangedEventHandler ValueChanged
Event Type
Explicit Interface Implementations
Gets or sets the VisualTheme.
Declaration
string IVisualStyle.VisualTheme { get; set; }
Returns
Implements