Type | Description | |||
PatternEnum | A PatternEnum expression that indicates the brush being used to fill the bar. |
The following VB sample creates a new bar called "Task2", that's similar with the "Task" bar excepts that we change the pattern to fill the bar:
With G2antt1.Chart.Bars With .Copy("Task", "Task2") .Pattern = exPatternDot End With End With
The following C++ sample creates a new bar called "Task2", that's similar with the "Task" bar excepts that we change the pattern to fill the bar:
CBars bars = m_g2antt.GetChart().GetBars(); CBar bar = bars.Copy( "Task", "Task2" ); bar.SetPattern( 2 /*exPatternDot*/ );
The following VB.NET sample creates a new bar called "Task2", that's similar with the "Task" bar excepts that we change the pattern to fill the bar:
With AxG2antt1.Chart.Bars With .Copy("Task", "Task2") .Pattern = EXG2ANTTLib.PatternEnum.exPatternDot End With End With
The following C# sample creates a new bar called "Task2", that's similar with the "Task" bar excepts that we change the pattern to fill the bar:
EXG2ANTTLib.Bar bar = axG2antt1.Chart.Bars.Copy("Task", "Task2"); bar.Pattern = EXG2ANTTLib.PatternEnum.exPatternDot;
The following VFP sample creates a new bar called "Task2", that's similar with the "Task" bar excepts that we change the pattern to fill the bar:
with thisform.G2antt1.Chart.Bars with .Copy("Task", "Task2" ) .Pattern = 2 endwith endwith