Loading...
Loading...
Compare original and translation side by side
ClockSyncfusion.Windows.Forms.Tools.ClockClockSyncfusion.Windows.Forms.Tools.ClockClockTypeClockFrameClockShapeShowCustomTimeClockCustomTimeStopTimerClockRenderer.DrawInteriorDigitalClockRenderer.DrawDigitalClockFrameClockTypeClockFrameClockShapeShowCustomTimeClockCustomTimeStopTimerClockRenderer.DrawInteriorDigitalClockRenderer.DrawDigitalClockFrame| Property | Type | Description |
|---|---|---|
| | |
| | Enable custom (non-system) time display |
| | The custom time to display when |
| | Freeze the clock at its current time |
| | Transparent background (analog) |
| | Custom renderer for analog clock hands |
| | Custom renderer for digital clock frame |
| 属性 | 类型 | 描述 |
|---|---|---|
| | 可选值为 |
| | 启用自定义(非系统)时间展示 |
| | 当 |
| | 将时钟固定在当前时间 |
| | 透明背景(仅模拟时钟生效) |
| | 模拟时钟指针的自定义渲染器 |
| | 数字时钟边框的自定义渲染器 |
ClockTypeShowCustomTimeClockCustomTimeStopTimerClockTypeShowCustomTimeClockCustomTimeStopTimerStartGradientBackColorEndGradientBackColorHourHandColorMinuteHandColorSecondHandColorMinuteColorBorderColorHourHandThicknessMinuteHandThicknessSecondHandThicknessMinuteThicknessShowAMorPMShowBorderShowMinuteShowSecondHandIsTransparentStartGradientBackColorEndGradientBackColorHourHandColorMinuteHandColorSecondHandColorMinuteColorBorderColorHourHandThicknessMinuteHandThicknessSecondHandThicknessMinuteThicknessShowAMorPMShowBorderShowMinuteShowSecondHandIsTransparentShowClockFrameClockFrameRectangularFrameCircularFrameSquareFrameClockShapeRectangleRoundedRectangleCircleSquareRoundedSquareForeColorBackgroundColorBorderColorDisplayDatesShowHourDesignatorDigitalRendererShowClockFrameClockFrameRectangularFrameCircularFrameSquareFrameClockShapeRectangleRoundedRectangleCircleSquareRoundedSquareForeColorBackgroundColorBorderColorDisplayDatesShowHourDesignatorDigitalRendererClockRendererDrawInteriorsender"SecondsHand""MinutesHand""HoursHand"elseLineCapDashStyleClockRendererDrawInteriorsender"SecondsHand""MinutesHand""HoursHand"LineCapDashStyleusing Syncfusion.Windows.Forms.Tools;
Clock clock1 = new Clock();
clock1.ClockType = ClockTypes.Analog;
clock1.StartGradientBackColor = Color.Black;
clock1.HourHandColor = Color.SkyBlue;
clock1.MinuteHandColor = Color.LightSeaGreen;
clock1.SecondHandColor = Color.LightSteelBlue;
this.Controls.Add(clock1);Imports Syncfusion.Windows.Forms.Tools
Dim clock1 As New Clock()
clock1.ClockType = ClockTypes.Digital
clock1.ShowClockFrame = True
clock1.ClockFrame = ClockFrames.RectangularFrame
Me.Controls.Add(clock1)using Syncfusion.Windows.Forms.Tools;
Clock clock1 = new Clock();
clock1.ClockType = ClockTypes.Analog;
clock1.StartGradientBackColor = Color.Black;
clock1.HourHandColor = Color.SkyBlue;
clock1.MinuteHandColor = Color.LightSeaGreen;
clock1.SecondHandColor = Color.LightSteelBlue;
this.Controls.Add(clock1);Imports Syncfusion.Windows.Forms.Tools
Dim clock1 As New Clock()
clock1.ClockType = ClockTypes.Digital
clock1.ShowClockFrame = True
clock1.ClockFrame = ClockFrames.RectangularFrame
Me.Controls.Add(clock1)| Scenario | Properties to Set |
|---|---|
| Show live analog clock | |
| Show digital clock with frame | |
| Freeze at a specific time | |
| Show custom/fixed time | |
| Transparent analog overlay | |
| Custom hand rendering | Subclass |
| Custom digital frame | Subclass |
| 场景 | 需要设置的属性 |
|---|---|
| 展示实时模拟时钟 | |
| 展示带边框的数字时钟 | |
| 固定在特定时间 | |
| 展示自定义/固定时间 | |
| 透明模拟时钟浮层 | |
| 自定义指针渲染 | 继承 |
| 自定义数字边框 | 继承 |