Type | Description | |||
ShapeBarEnum | A ShapeBarEnum expression that indicates the height and the vertical alignment of the bar |
The following VB sample creates a new bar called "Task2", that's similar with the "Task" bar excepts that we change the shape of the new bar bar:
With Gantt1.Chart.Bars With .Copy("Task", "Task2") .Shape = exShapeSolidCenter 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 shape of the new bar bar:
CBars bars = m_gantt.GetChart().GetBars(); CBar bar = bars.Copy( "Task", "Task2" ); bar.SetShape( 3 /*exShapeSolidCenter*/ );
The following VB.NET sample creates a new bar called "Task2", that's similar with the "Task" bar excepts that we change the shape of the new bar bar:
With AxGantt1.Chart.Bars With .Copy("Task", "Task2") .Shape = EXGANTTLib.ShapeBarEnum.exShapeSolidCenter 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 shape of the new bar bar:
EXGANTTLib.Bar bar = axGantt1.Chart.Bars.Copy("Task", "Task2"); bar.Shape = EXGANTTLib.ShapeBarEnum.exShapeSolidCenter;
The following VFP sample creates a new bar called "Task2", that's similar with the "Task" bar excepts that we change the shape of the new bar bar:
with thisform.Gantt1.Chart.Bars with .Copy("Task", "Task2" ) .Shape = 3 endwith endwith