The
Chart object contains all properties and methods related to the Gantt chart
area. Use the
Bars property to access the
control's Bars collection. Use the
PaneWidth
property to specify the width of the chart area. Use the
AddBar
property to add new bars to an item. Use the
LevelCount
property to specify the number of levels in the control's header. The Chart
object supports the following properties and methods:
| |  | Name | Description | |
| | | AddNonworkingDate | Adds a nonworking date. | |
| | | AllowOverviewZoom | Gets or sets a value that indicates whether the user can zoom the chart at runtime. | |
| | | AMPM | Specifies the AM and PM indicators. | |
| | | BackColor | Retrieves or sets a value that indicates the chart's background color. | |
| | | BackColorLevelHeader | Specifies the background color for the chart's levels. | |
| | | BarFromPoint | Retrieves the bar from point. | |
| | | Bars | Retrieves the Bars collection. | |
| | | ClearNonworkingDates | Clears nonworking dates. | |
| | | DateFromPoint | Retrieves the date from the cursor. | |
| | | DrawDateTicker | Retrieves or sets a value that indicates whether the control draws a ticker around the current date while cursor hovers the chart's client area. | |
| | | DrawGridLines | Retrieves or sets a value that indicates whether the grid lines are visible or hidden. | |
| | | DrawLevelSeparator | Retrieves or sets a value that indicates whether lines between levels are shown or hidden. | |
| | | FirstVisibleDate | Retrieves or sets a value that indicates the first visible date. | |
| | | FirstWeekDay | Specifies the first day of the week. | |
| | | ForeColor | Retrieves or sets a value that indicates the chart's foreground color. | |
| | | ForeColorLevelHeader | Specifies the foreground color for the chart's levels. | |
| | | FormatDate | Formats the date. | |
| | | IsDateVisible | Specifies whether the date fits the control's chart area. | |
| | | IsNonworkingDate | Specifies whether the date is a nonworking day. | |
| | | Label | Retrieves or sets a value that indicates the predefined format of the level's label for a specified unit. | |
| | | LabelToolTip | Retrieves or sets a value that indicates the predefined format of the level's tooltip for a specified unit. | |
| | | Level | Retrieves the level based on its index. | |
| | | LevelCount | Specifies the number of levels in the control's header. | |
| | | LevelFromPoint | Retrieves the index of the level from the point. | |
| | | LinkFromPoint | Retrieves the link from the point. | |
| | | LinksColor | Specifies the color to draw the links between the bars. | |
| | | LinksStyle | Specifies the style to draw the links between the bars. | |
| | | LinksWidth | Specifies the width in pixels of the pen to draw the links between the bars. | |
| | | MarkNowColor | Specifies the background color or the visual appearance of the object that indicates the current time in the chart. | |
| | | MarkNowCount | Specifies the number of time units to count while highlighting the current time. | |
| | | MarkNowTransparent | Specifies the percent of the transparency to display the object that marks the current time. | |
| | | MarkNowUnit | Retrieves or sets a value that indicates the base time unit while highlighting the current time. | |
| | | MarkNowWidth | Specifies the width in pixels of the object that shows the current time. | |
| | | MarkSelectDateColor | Retrieves or sets a value that indicates the color to mark the selected date in the chart. | |
| | | MarkTodayColor | Retrieves or sets a value that indicates the color to mark today in the chart. | |
| | | MonthNames | Retrieves or sets a value that indicates the list of month names, separated by space. | |
| | | NextDate | Gets the next date based on the unit. | |
| | | NonworkingDays | Retrieves or sets a value that indicates the non-working days, for each week day a bit. | |
| | | NonworkingDaysColor | Retrieves or sets a value that indicates the color to fill the non-working days. | |
| | | NonworkingDaysPattern | Retrieves or sets a value that indicates the pattern being used to fill non-working days. | |
| | | NonworkingHours | Retrieves or sets a value that indicates the non-working hours, for each hour in a day a bit. | |
| | | NonworkingHoursColor | Retrieves or sets a value that indicates the color to fill the non-working hours. | |
| | | NonworkingHoursPattern | Retrieves or sets a value that indicates the pattern being used to fill non-working hours. | |
| | | OverviewBackColor | Specifies the background color of the chart's overview. | |
| | | OverviewHeight | Specifies whether the height of the chart's overview. | |
| | | OverviewLevelLines | Indicates the index of the level that displays the grid line in the chart's overview. | |
| | | OverviewSelBackColor | Specifies the selection color of the chart's overview. | |
| | | OverviewToolTip | Retrieves or sets a value that indicates the format of the tooltip being shown while the cursor hovers the chart's overview area. | |
| | | OverviewVisible | Specifies whether the chart's overview layout is visible or hidden. | |
| | | OverviewZoomCaption | Specifies the captions for each zooming unit. | |
| | | OverviewZoomUnit | Indicates the width in pixels of the zooming unit in the overview. | |
| | | PaneWidth | Specifies the width for the left or side pane. | |
| | | Picture | Retrieves or sets a graphic to be displayed in the chart. | |
| | | PictureDisplay | Retrieves or sets a value that indicates the way how the graphic is displayed on the chart's background | |
| | | RemoveNonworkingDate | Removes a nonworking date. | |
| | | ScrollBar | Shows or hides the chart's horizontal scroll bar. | |
| | | ScrollRange | Specifies the range of dates to scroll within. | |
| | | ScrollTo | Scrolls the chart so the specified date is visible. | |
| | | SelBackColor | Retrieves or sets a value that indicates the selection background color. | |
| | | SelectDate | Selects or unselects a specific date in the chart. | |
| | | SelectLevel | Indicates the index of the level that highlights the selected dates. | |
| | | SelForeColor | Retrieves or sets a value that indicates the selection foreground color. | |
| | | ShowEmptyBars | Specifies whether empty bars are shown or hidden. An empty bar has the start and end dates identical. | |
| | | ShowEmptyBarsUnit | Specifies the unit to be added to the end date, so empty bars are shown. | |
| | | ShowLinks | Retrieves or sets a value that indicates whether the links between bars are visible or hidden. | |
| | | ShowNonworkingDates | Shows or hides nonworking dates. | |
| | | ShowNonworkingUnits | Retrieves or sets a value that indicates whether the non-working units are visible or hidden. | |
| | | ShowTransparentBars | Gets or sets a value that indicates percent of the transparency to display the bars. | |
| | | ToolTip | Retrieves or sets a value that indicates the format of the tooltip being shown while the user scrolls the chart. | |
| | | UnitScale | Retrieves or sets a value that indicates the base unit being displayed. | |
| | | UnitWidth | Specifies the width in pixels for the minimal unit. | |
| | | UnselectDates | Unselects all dates in the chart. | |
| | | WeekDays | Retrieves or sets a value that indicates the list of names for each week day, separated by space. | |
| | | Zoom | Sets or retrieves the magnification scale of the chart. | |