menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Clock - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Clock

    Inheritance
    System.Object
    Clock
    Implements
    IVisualStyle
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class Clock : Control, IVisualStyle

    Constructors

    Clock()

    Declaration
    public Clock()

    Fields

    RemainderTime

    Remainder event handler

    Declaration
    public EventHandler RemainderTime
    Field Value
    Type
    System.EventHandler

    Tick

    Tick event handler

    Declaration
    public EventHandler Tick
    Field Value
    Type
    System.EventHandler

    Ticks

    Timer

    Declaration
    public Timer Ticks
    Field Value
    Type
    System.Windows.Forms.Timer

    Properties

    AlignAMorPM

    Gets or Sets the alignment of AMorPM.

    Declaration
    public Align AlignAMorPM { get; set; }
    Property Value
    Type
    Align

    BackColor

    Hide Controls back color

    Declaration
    public override Color BackColor { get; }
    Property Value
    Type
    System.Drawing.Color

    BackgroundColor

    Gets or Sets control back color

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    BeforeTouchSize

    Gets/Sets Control size before touch enabled

    Declaration
    public Size BeforeTouchSize { get; set; }
    Property Value
    Type
    System.Drawing.Size

    BorderColor

    Gets or Sets the border color.

    Declaration
    public Color BorderColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    ClockFormat

    Gets / sets the value for Clock format Support only for digital clock

    Declaration
    public string ClockFormat { get; set; }
    Property Value
    Type
    System.String

    ClockFrame

    Gets /sets the value for digital clock frame Support only for digital clock

    Declaration
    public ClockFrames ClockFrame { get; set; }
    Property Value
    Type
    ClockFrames

    ClockShape

    Gets /sets the value for digital clock shape Support only for digital clock

    Declaration
    public ClockShapes ClockShape { get; set; }
    Property Value
    Type
    ClockShapes

    ClockType

    Gets /sets the clock type

    Declaration
    public ClockTypes ClockType { get; set; }
    Property Value
    Type
    ClockTypes

    CurrentDateTime

    Gets/ sets the value to CurrentDateTime Supports for both analog and digital clock

    Declaration
    public DateTime CurrentDateTime { get; set; }
    Property Value
    Type
    System.DateTime

    CustomTime

    Gets/sets the value for CustomTime Supports for both analog and digital clock

    Declaration
    public DateTime CustomTime { get; set; }
    Property Value
    Type
    System.DateTime

    DigitalRenderer

    Gets or Sets the digital clock renderer.

    Declaration
    public IDigitalClockRenderer DigitalRenderer { get; set; }
    Property Value
    Type
    IDigitalClockRenderer

    DisplayDates

    Gets/Sets the value for DigitalClock Date

    Declaration
    public bool DisplayDates { get; set; }
    Property Value
    Type
    System.Boolean

    EnableRemainder

    Enable of Disable remainder.

    Declaration
    public bool EnableRemainder { get; set; }
    Property Value
    Type
    System.Boolean

    EnableTouchMode

    Gets or Sets the touch mode

    Declaration
    public bool EnableTouchMode { get; set; }
    Property Value
    Type
    System.Boolean

    EndGradientBackColor

    Gets or Sets the second color of the gradient background.

    Declaration
    public Color EndGradientBackColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    Font

    Set default font

    Declaration
    public override Font Font { get; set; }
    Property Value
    Type
    System.Drawing.Font

    ForeColor

    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

    HourHandColor

    Gets or Sets the color of the hour hand.

    Declaration
    public Color HourHandColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    HourHandThickness

    Specifies the thickness of the hour hand.

    Declaration
    public float HourHandThickness { get; set; }
    Property Value
    Type
    System.Single

    Image

    Gets or Sets the Image.

    Declaration
    public Image Image { get; set; }
    Property Value
    Type
    System.Drawing.Image

    IsTransparent

    Specifies the thickness of the minutes.

    Declaration
    public bool IsTransparent { get; set; }
    Property Value
    Type
    System.Boolean

    MinuteColor

    Gets or Sets the color of the minutes.

    Declaration
    public Color MinuteColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    MinuteHandColor

    Gets or Sets the color of the minute hand.

    Declaration
    public Color MinuteHandColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    MinuteHandThickness

    Specifies the thickness of the minutee hand.

    Declaration
    public float MinuteHandThickness { get; set; }
    Property Value
    Type
    System.Single

    MinuteThickness

    Specifies the thickness of the minutes.

    Declaration
    public float MinuteThickness { get; set; }
    Property Value
    Type
    System.Single

    Now

    Gets or Sets the current time.

    Declaration
    public DateTime Now { get; set; }
    Property Value
    Type
    System.DateTime

    Remainder

    Gets or Sets the date time for remainder.

    Declaration
    public DateTime Remainder { get; set; }
    Property Value
    Type
    System.DateTime

    Renderer

    Gets or Sets the renderer.

    Declaration
    public IClockRenderer Renderer { get; set; }
    Property Value
    Type
    IClockRenderer

    SecondHandColor

    Gets or Sets the color of the second hand.

    Declaration
    public Color SecondHandColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    SecondHandThickness

    Specifies the thickness of the second hand.

    Declaration
    public float SecondHandThickness { get; set; }
    Property Value
    Type
    System.Single

    ShowAMorPM

    Marked as Obsolete. Please use ShowHourDesignator instead.

    Declaration
    [Obsolete("Please use ShowHourDesignator instead.")]
    public bool ShowAMorPM { get; set; }
    Property Value
    Type
    System.Boolean

    ShowBorder

    Show or Hide the border.

    Declaration
    public bool ShowBorder { get; set; }
    Property Value
    Type
    System.Boolean

    ShowClockFrame

    Show/Hide the Digital Clock Frame Support only for digital clock

    Declaration
    public bool ShowClockFrame { get; set; }
    Property Value
    Type
    System.Boolean

    ShowCustomTimeClock

    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
    System.Boolean

    ShowHourDesignator

    Gets or sets a value to show/hide the HourDesignator.

    Declaration
    public bool ShowHourDesignator { get; set; }
    Property Value
    Type
    System.Boolean

    ShowMinute

    Show or Hide the minutes.

    Declaration
    public bool ShowMinute { get; set; }
    Property Value
    Type
    System.Boolean

    ShowSecondHand

    Show or Hide the second hand.

    Declaration
    public bool ShowSecondHand { get; set; }
    Property Value
    Type
    System.Boolean

    StartGradientBackColor

    Gets or Sets the first color of the gradient background.

    Declaration
    public Color StartGradientBackColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    StopTimer

    Declaration
    public bool StopTimer { get; set; }
    Property Value
    Type
    System.Boolean

    VisualStyle

    Specifies the visual style.

    Declaration
    public ClockVisualStyle VisualStyle { get; set; }
    Property Value
    Type
    ClockVisualStyle

    Methods

    ApplyScaleToControl(Single)

    Applies the scaling

    Declaration
    public void ApplyScaleToControl(float scaleFactor)
    Parameters
    Type Name Description
    System.Single scaleFactor

    CreateAccessibilityInstance()

    Overrides the AccessibleObject.

    Declaration
    protected override AccessibleObject CreateAccessibilityInstance()
    Returns
    Type Description
    System.Windows.Forms.AccessibleObject

    The TreeViewAdv that owns the TreeViewAdvAcessibleObject.

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    GetRoundedregion(Single, Single, Single, Single, Single)

    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

    OnPaint(PaintEventArgs)

    OnPaint

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    OnRegionChanged(EventArgs)

    Declaration
    protected override void OnRegionChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnResize(EventArgs)

    OnResize

    Declaration
    protected override void OnResize(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnSizeChanged(EventArgs)

    Size changed

    Declaration
    protected override void OnSizeChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnValueChanged(DateTime)

    Declaration
    protected void OnValueChanged(DateTime ClockDateTime)
    Parameters
    Type Name Description
    System.DateTime ClockDateTime

    ShouldSerializeAlignAMorPM()

    Declaration
    protected bool ShouldSerializeAlignAMorPM()
    Returns
    Type
    System.Boolean

    ShouldSerializeBorderColor()

    Declaration
    protected bool ShouldSerializeBorderColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeEnableRemainder()

    Declaration
    protected bool ShouldSerializeEnableRemainder()
    Returns
    Type
    System.Boolean

    ShouldSerializeEndGradientBackColor()

    Declaration
    protected bool ShouldSerializeEndGradientBackColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeHourHandColor()

    Declaration
    protected bool ShouldSerializeHourHandColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeHourHandThickness()

    Declaration
    protected bool ShouldSerializeHourHandThickness()
    Returns
    Type
    System.Boolean

    ShouldSerializeImage()

    Declaration
    protected bool ShouldSerializeImage()
    Returns
    Type
    System.Boolean

    ShouldSerializeIsTransparent()

    Declaration
    protected bool ShouldSerializeIsTransparent()
    Returns
    Type
    System.Boolean

    ShouldSerializeMinuteColor()

    Declaration
    protected bool ShouldSerializeMinuteColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeMinuteHandColor()

    Declaration
    protected bool ShouldSerializeMinuteHandColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeMinuteHandThickness()

    Declaration
    protected bool ShouldSerializeMinuteHandThickness()
    Returns
    Type
    System.Boolean

    ShouldSerializeMinuteThickness()

    Declaration
    protected bool ShouldSerializeMinuteThickness()
    Returns
    Type
    System.Boolean

    ShouldSerializeSecondHandColor()

    Declaration
    protected bool ShouldSerializeSecondHandColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeSecondHandThickness()

    Declaration
    protected bool ShouldSerializeSecondHandThickness()
    Returns
    Type
    System.Boolean

    ShouldSerializeShowAMorPM()

    Declaration
    protected bool ShouldSerializeShowAMorPM()
    Returns
    Type
    System.Boolean

    ShouldSerializeShowBorder()

    Declaration
    protected bool ShouldSerializeShowBorder()
    Returns
    Type
    System.Boolean

    ShouldSerializeShowMinute()

    Declaration
    protected bool ShouldSerializeShowMinute()
    Returns
    Type
    System.Boolean

    ShouldSerializeShowSecondHand()

    Declaration
    protected bool ShouldSerializeShowSecondHand()
    Returns
    Type
    System.Boolean

    ShouldSerializeStartGradientBackColor()

    Declaration
    protected bool ShouldSerializeStartGradientBackColor()
    Returns
    Type
    System.Boolean

    ShouldSerializeVisualStyle()

    Declaration
    protected bool ShouldSerializeVisualStyle()
    Returns
    Type
    System.Boolean

    Events

    ValueChanged

    Values for angle chaged

    Declaration
    public event Clock.ValueChangedEventHandler ValueChanged
    Event Type
    Type
    Clock.ValueChangedEventHandler

    Explicit Interface Implementations

    IVisualStyle.VisualTheme

    Gets or sets the VisualTheme.

    Declaration
    string IVisualStyle.VisualTheme { get; set; }
    Returns
    Type
    System.String

    Implements

    IVisualStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved