GridlineType Enumeration

Type of gridline.

Namespace:  Aspose.Tasks.Visualization
Assembly:  Aspose.Tasks (in Aspose.Tasks.dll) Version: 21.10
Syntax
public enum GridlineType
Members
  Member nameValueDescription
GanttRow0 Indicates Gridline of a gantt row grid line type.
TopTierColumn1 Indicates Gridline of top tier column grid line type.
BottomTierColumn2 Indicates Gridline of bottom tier column grid line type.
SheetRow3 Indicates Gridline of a sheet row grid line type.
SheetColumn4 Indicates Gridline of a sheet column grid line type.
UsageRow5 Indicates Gridline of a usage row grid line type.
UsageColumn6 Indicates Gridline of a usage column grid line type.
GanttTitleVertical7 Indicates Gantt title vertical grid line type.
GanttTitleHorizontal8 Indicates Gantt title horizontal grid line type.
BarRows9 Indicates Bar rows grid line type.
GanttProjectStart10 Indicates Gantt project start grid line type.
GanttProjectFinish11 Indicates Gantt project finish grid line type.
GanttStatusDate12 Indicates Gantt status date grid line type.
GanttCurrentDate13 Indicates Gantt current date grid line type.
GanttPageBreaks14 Indicates Gantt page breaks grid line type.
MiddleTierColumn15 Indicates Gridline of middle tier column grid line type.
Examples
Shows how to work with gridlines while save in visual formats.
var project = new Project(DataDir + "CreateProject2.mpp");
var options = new ImageSaveOptions(SaveFileFormat.PNG);

var gridline = new Gridline
{
    // set the type of gridline (<see cref="P:Aspose.Tasks.Visualization.Gridline.GridlineType" />).
    GridlineType = GridlineType.GanttRow, 
    // set the <see cref="T:Aspose.Tasks.Visualization.LinePattern" /> of a gridline
    Pattern = LinePattern.Dashed
};

options.Gridlines = new List<Gridline>();
options.Gridlines.Add(gridline);

project.Save(OutDir + "PrintProjectPagesToSeparateFiles_out.png", options);
See Also