

| 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 Gantt1.Chart.Bars
With .Copy("Task", "Task2")
.Pattern = exPatternDot
End With
End WithThe 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_gantt.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 AxGantt1.Chart.Bars
With .Copy("Task", "Task2")
.Pattern = EXGANTTLib.PatternEnum.exPatternDot
End With
End WithThe 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:
EXGANTTLib.Bar bar = axGantt1.Chart.Bars.Copy("Task", "Task2");
bar.Pattern = EXGANTTLib.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.Gantt1.Chart.Bars
with .Copy("Task", "Task2" )
.Pattern = 2
endwith
endwith