Gridline.Pattern
Gridline.Pattern property
Gets or sets the LinePattern
of a gridline.
public LinePattern Pattern { get; set; }
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
- enum LinePattern
- class Gridline
- namespace Aspose.Tasks.Visualization
- assembly Aspose.Tasks