Export (0) Print
Expand All
Expand Minimize

BarShape enumeration

Used to indicate the size, shape, and location of a given gantt bar.

Namespace:  Microsoft.SharePoint.JSGrid
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public enum BarShape

Member nameDescription
NoneIndicates that no bar shape is displayed in the displayable bar area.
FullIndicates that the bar shape is displayed using one-hundred percent of the displayable bar area.
TopHalfIndicates that the bar shape is displayed only in the upper-fifty percent of the displayable bar area.
MidHalfIndicates that the bar shape is displayed in the middle-fifty percent of the displayable bar area.
BottomHalfIndicates that the bar shape is displayed only in the lower fifty percent of the displayable bar area.
TopLineIndicates that the bar shape is displayed only as a single line at the top of the displayable bar area.
MidLineIndicates that the bar shape is displayed only as a single line at the halfway point of the displayable bar area.
BottomLineIndicates that the bar shape is displayed only as a single line at the bottom of the displayable bar area.

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));

Show:
© 2014 Microsoft