Export (0) Print
Expand All

BarPattern Enumeration

Specifies a pattern for the background of a Gantt bar.

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

public enum BarPattern

Member nameDescription
EmptyIndicates that the pattern used within Gantt bars contains no colors and no shading.
SolidIndicates whether the pattern used within Gantt bars is displayed with a solid color.
Dots25PctIndicates that the pattern used within Gantt bars contains twenty-five percent dotted shading.
Dots50PctIndicates that the pattern used within Gantt bars contains fifty percent dotted shading.
Dots75PctIndicates that the pattern used within Gantt bars contains seventy-five percent dotted shading.
NW2SEDiagIndicates whether the line pattern used within Gantt bars is drawn in an upper-left to lower-right display pattern.
SW2NEDiagIndicates whether the line pattern used within Gantt bars is drawn in a lower-left to upper-right display pattern.
BothDiagIndicates that the pattern used within Gantt bars contains a crossed hatch pattern.
VertLinesSpecifies whether the pattern used within Gantt bars is displayed with only the vertical component of grid lines.
HorizLinesSpecifies whether the pattern used within Gantt bars is displayed with only the horizontal component of grid lines.
GridLinesSpecifies whether the pattern used within Gantt bars is displayed with gridlines.

This example demonstrates the use of a Solid bar pattern in creating a summary bar style.

/*Summary Bar Style*/
   styleInfoObj.AddBarStyle(new GanttBarStyle(
   CustomBarStyle.Summary, BarShape.TopHalf, Color.Gray, BarPattern.Solid,
   BarEndShape.HomePlateDown, Color.Gray, BarShapePattern.Filled,
   BarEndShape.HomePlateDown, Color.Gray, BarShapePattern.Filled,
   "Start Date", "Finish Date", 1));


Show:
© 2014 Microsoft