title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.GridlinesEdit method (Project) |
vbapj.chm2061 |
|
project-server |
|
75b9d660-88b5-da71-faf8-215abce897d2 |
02/16/2019 |
medium |
Edits gridlines.
expression.GridlinesEdit (Item, NormalType, NormalColor, Interval, IntervalType, IntervalColor)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Item | Required | Integer | The gridline to edit. Can be one of the following PjGridline constants:
|
NormalType | Optional | Integer | The type for normal gridlines. Can be one of the following PjLineType constants: pjNoLines, pjContinuous, pjCloseDot, pjDot, or pjDash. |
NormalColor | Optional | Integer | The color of normal gridlines. Can be one of the PjColor constants. |
Interval | Optional | Integer | A number from 0 to 99 that specifies the interval between gridlines. |
IntervalType | Optional | Integer | The type for secondary gridlines. Can be one of the PjLineType constants. |
IntervalColor | Optional | Integer | The color of secondary gridlines. Can be one of the PjColor constants. |
Boolean
To edit gridlines where colors can be hexadecimal RGB values, use the GridLinesEditEx method.
The following example changes the major gridlines to red.
Sub Gridlines_Edit()
'Activate Gantt Chart view
ViewApply Name:="&Gantt Chart"
GridlinesEdit Item:=pjMajorColumns, NormalColor:=pjRed
End Sub
[!includeSupport and feedback]