GetBarPaintWidth()
<< Click to Display Table of Contents >> GetBarPaintWidth() |
Returns the painted width of the chart bar. The GetBarPintWidth() method will return a minimum value of 1.
Note: This is an abstract method which is required to compile a ChartStyle object. If you do not plan on recalculating a barWidth, simply return the default barWidth parameter which is passed in this method. Please see the Examples section of this page for more information. |
An int value
You must over ride this method using the following syntax:
public override int GetBarPaintWidth(int barWidth)
{
}
barWidth |
An int value representing the current width of the bar to calculate |
Returning the default barWidth |
---|
public override int GetBarPaintWidth(int barWidth) |
Calculating and returning a new barWidth from the original barWidth |
---|
public override int GetBarPaintWidth(int barWidth) // calculate a new bar width |