Bar object
The Bar object identifies a bar in the chart. A Bar object contains three parts: the start part and end part identifies the corners of the bar, and the middle part of the bar. The look and feel of the middle part of the bar are defined by the properties: Color, Pattern and Shape. The StartShape and StartColor properties defines the start part of the bar. The EndShape and EndColor properties defines the end part of the bar. Use the Bars property to access the Bars collection. Use the Chart object property to access the control's chart. Use the AddBar method to add a bar to an item. Use the Add and Copy methods to add new Bar objects. The Bar object supports the following properties and methods:

NameDescription
ColorSpecifies the color of the bar.
EndColorReturns or sets a value that indicates the color for the right side corner.
EndShapeRetrieves or sets a value that indicates the shape of the right side corner.
HeightRetrieves or sets a value that indicates the height in pixels of the bar.
NameRetrieves the name of the bar.
PatternRetrieves or sets a value that indicates the pattern being used to fill the bar.
ShapeRetrieves or sets a value that indicates the shape of the bar.
ShortcutSpecifies a value that indicates a shortcut for the current bar.
StartColorReturns or sets a value that indicates the color for the left side corner.
StartShapeRetrieves or sets a value that indicates the shape of the left side corner.