Gridlines Class |
Namespace: Aspose.Tasks.Visualization
The Gridlines type exposes the following members.
| Name | Description | |
|---|---|---|
| Gridlines | Initializes a new instance of the Gridlines class |
| Name | Description | |
|---|---|---|
| Interval |
Gets or sets the number from 0 to 99 that specifies the interval between gridlines.
| |
| IntervalColor |
Gets or sets the color of secondary gridlines.
| |
| IntervalPattern |
Gets or sets the line pattern for secondary gridlines.
| |
| NormalColor |
Gets or sets the color of normal gridlines.
| |
| NormalPattern |
Gets or sets the line pattern for normal gridlines.
| |
| Type |
Gets or sets the gridline type.
|
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
var project = new Project(DataDir + "Project2.mpp"); var view = (GanttChartView)project.Views.ToList()[0]; // lets tune the first gridline of the view var gridlines = view.Gridlines[0]; // set the number from 0 to 99 that specifies the interval between gridlines. gridlines.Interval = 2; // set the color of secondary gridlines. gridlines.IntervalColor = Color.Red; // set the line pattern for secondary gridlines gridlines.IntervalPattern = LinePattern.Solid; // set the color of normal gridlines gridlines.NormalColor = Color.Blue; // set the line pattern for normal gridlines gridlines.NormalPattern = LinePattern.CloseDot; // set the gridline type gridlines.Type = GridlineType.GanttRow; project.Save(OutDir + "WorkWithGridlines_out.mpp", SaveFileFormat.MPP);