共用方式為


GridSerializer.EnableGantt Method

Configures the grid to display a Gantt chart in the right pane. In cases where a GridSerializer instance is populated by multiple GridSerializer objects over its lifetime, this function can only be called if ReserveGantt(String) or EnableGantt was called on the initial GridSerializer object.

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

Syntax

'Declaration
Public Sub EnableGantt ( _
    earliestBarBegin As DateTime, _
    latestBarEnd As DateTime, _
    ganttStyleInfo As GanttStyleInfo, _
    ganttDependentsColumnName As String _
)
'Usage
Dim instance As GridSerializer
Dim earliestBarBegin As DateTime
Dim latestBarEnd As DateTime
Dim ganttStyleInfo As GanttStyleInfo
Dim ganttDependentsColumnName As String

instance.EnableGantt(earliestBarBegin, _
    latestBarEnd, ganttStyleInfo, ganttDependentsColumnName)
public void EnableGantt(
    DateTime earliestBarBegin,
    DateTime latestBarEnd,
    GanttStyleInfo ganttStyleInfo,
    string ganttDependentsColumnName
)

Parameters

  • earliestBarBegin
    Type: System.DateTime

    Specifies the earliest begin date for any record. It is used to determine the initial scrollbar size.

  • latestBarEnd
    Type: System.DateTime

    Specifies the latest end date any for any record. It is used to determine the initial scrollbar size.

  • ganttDependentsColumnName
    Type: System.String

    Specifies the name of the data column in the external source table containing dependency information. Dependency information is used to represent task dependencies, which are displayed in the Gantt as arrows between Gantt bars.

See Also

Reference

GridSerializer Class

GridSerializer Members

Microsoft.SharePoint.JSGrid Namespace