property Chart.MarkNowColor as Color
Specifies the background color or the visual appearance of the object that indicates the current time in the chart.

 TypeDescription 
   Color A color expression that specifies the background color to show the position of the current date-time. The last 7 bits in the high significant byte of the color indicates the identifier of the skin being used. Use the Add method to add new skins to the control. If you need to remove the skin appearance from a part of the control you need to reset the last 7 bits in the high significant byte of the color being applied to the background's part.  
By default, the MarkNowColor property is 0. The control's chart shows the position of the current date-time, only if the MarkNowColor property is not zero (0). Use the MarkNowColor properties to show the current date-time in the control's chart. The MarkNowUnit property specifies the unit of time to count for. For instance, you can show the current date-time from current second, to next second, from minute to next minute, and so on. Use the MarkNowCount property to specify the number of units of date-time to count from. For instance, you can show the current date-time from 5 seconds to 5 seconds, and so on. The MarkNowWidth property specifies the width in pixels of the vertical bar that shows the current date-time.  The MarkNowTransparent property specifies the percent of transparency to show the vertical bar that indicates the current date-time. The MarkTodayColor property highlights the current day only. The control fires the DateTimeChanged event when the current date-time is changed. Use the SelectDate property to select a date by clicking the chart's header. Use the MarkTimeZone method to highlight different time-zones. You can use the MarkNow property to indicate a custom date to be shown instead the current date-time. The MarkNowDelay property can be used to display the date time with a specified delay.

This screen shot shows the vertical bar that indicates the current date-time. The bar is automatically updated each second, unless the MarkNowUnit property is not changed to exMinute, when the vertical bar is updated each minute.


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.