Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Used to indicate the size, shape, and location of a given gantt bar.
Namespace: Microsoft.SharePoint.JSGrid
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Enumeration BarShape
'Usage
Dim instance As BarShape
public enum BarShape
Members
Member name | Description | |
---|---|---|
None | Indicates that no bar shape is displayed in the displayable bar area. | |
Full | Indicates that the bar shape is displayed using one-hundred percent of the displayable bar area. | |
TopHalf | Indicates that the bar shape is displayed only in the upper-fifty percent of the displayable bar area. | |
MidHalf | Indicates that the bar shape is displayed in the middle-fifty percent of the displayable bar area. | |
BottomHalf | Indicates that the bar shape is displayed only in the lower fifty percent of the displayable bar area. | |
TopLine | Indicates that the bar shape is displayed only as a single line at the top of the displayable bar area. | |
MidLine | Indicates that the bar shape is displayed only as a single line at the halfway point of the displayable bar area. | |
BottomLine | Indicates that the bar shape is displayed only as a single line at the bottom of the displayable bar area. |
Remarks
This example demonstrates using a MidHalf bar shape to create a percent complete bar style.
/*PctComplete Bar Style*/
styleInfoObj.AddBarStyle(new GanttBarStyle(
CustomBarStyle.PctComplete, BarShape.MidHalf, Color.Black, BarPattern.Solid,
BarEndShape.None, Color.Black, BarShapePattern.Filled,
BarEndShape.None, Color.Black, BarShapePattern.Filled,
"Start Date", "CompleteThrough", 1));
'PctComplete Bar Style
styleInfoObj.AddBarStyle(New GanttBarStyle(CustomBarStyle.PctComplete, BarShape.MidHalf, Color.Black, BarPattern.Solid, BarEndShape.None, Color.Black, BarShapePattern.Filled, BarEndShape.None, Color.Black, BarShapePattern.Filled, "Start Date", "CompleteThrough", 1))