다음을 통해 공유


GanttBarStyle Class

Defines a Gantt bar style for use in a JSGrid control Gantt chart.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.JSGrid.GanttBarStyle

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

Syntax

'Declaration
Public Class GanttBarStyle _
    Implements IJsonSerializable
'Usage
Dim instance As GanttBarStyle
public class GanttBarStyle : IJsonSerializable

Remarks

For each record set, there is a small group of bar styles. Each task has a list of styles that apply to it. For example, if the task is a normal task, it has two styles that can apply to it: Normal and Normal Progress. If the task is a Milestone task, it has only one style applied to it. The overall look of a Gantt bar may be the composition of a number of bar styles.

This example demonstrates how to create a Gantt bar.

/*Standard Bar Style*/
  styleInfoObj.AddBarStyle(new GanttBarStyle(
  CustomBarStyle.Standard, BarShape.Full, Color.Blue, BarPattern.Empty,
  BarEndShape.None, Color.Black, BarShapePattern.Filled,
  BarEndShape.None, Color.Black, BarShapePattern.Filled,
  "Start Date", "Finish Date", 1));

For more information, refer to How to: Create a Gantt Chart Using the JS Grid Control.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

GanttBarStyle Members

Microsoft.SharePoint.JSGrid Namespace