다음을 통해 공유


BarPattern Enumeration

Specifies a pattern for the background of a Gantt bar.

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

Syntax

'Declaration
Public Enumeration BarPattern
'Usage
Dim instance As BarPattern
public enum BarPattern

Members

Member name Description
Empty Indicates that the pattern used within Gantt bars contains no colors and no shading.
Solid Indicates whether the pattern used within Gantt bars is displayed with a solid color.
Dots25Pct Indicates that the pattern used within Gantt bars contains twenty-five percent dotted shading.
Dots50Pct Indicates that the pattern used within Gantt bars contains fifty percent dotted shading.
Dots75Pct Indicates that the pattern used within Gantt bars contains seventy-five percent dotted shading.
NW2SEDiag Indicates whether the line pattern used within Gantt bars is drawn in an upper-left to lower-right display pattern.
SW2NEDiag Indicates whether the line pattern used within Gantt bars is drawn in a lower-left to upper-right display pattern.
BothDiag Indicates that the pattern used within Gantt bars contains a crossed hatch pattern.
VertLines Specifies whether the pattern used within Gantt bars is displayed with only the vertical component of grid lines.
HorizLines Specifies whether the pattern used within Gantt bars is displayed with only the horizontal component of grid lines.
GridLines Specifies whether the pattern used within Gantt bars is displayed with gridlines.

Remarks

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

See Also

Reference

Microsoft.SharePoint.JSGrid Namespace