다음을 통해 공유


BarShapePattern Enumeration

Indicates that the bar shape is displayed as filled or hollow.

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

Syntax

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

Members

Member name Description
Filled Indicates that the bar shape is displayed as a filled color in the displayable bar area.
Hollow Indicates that the bar shape is displayed with no color formatting in the displayable bar area.

Remarks

This example demonstrates the use of a ‘Filled’ bar shape pattern.

/*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))

See Also

Reference

Microsoft.SharePoint.JSGrid Namespace