Application.GridlinesEdit Method
Project Developer Reference |
Edits gridlines.
Syntax
expression.GridlinesEdit(Item, NormalType, NormalColor, Interval, IntervalType, IntervalColor)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Item | Required | Long | The gridline to edit. Can be one of the following PjGridline constants. If the Gantt Chart is active: pjBarRows, pjGanttCurrentDate, pjGanttPageBreaks, pjGanttProjectFinish, pjGanttProjectStart, pjGanttRows, pjGanttSheetColumns, pjGanttSheetRows, pjGanttStatusDate, pjGanttTitleHorizontal, pjGanttTitleVertical, pjMajorColumns, or pjMinorColumns. If the Calendar view is active: pjCalendarDays, pjCalendarWeeks, pjTitleHorizontal, pjTitleVertical, pjDateBoxTop, or pjDateBoxBottom. If the Resource Graph is active: pjMajorVertical, pjMinorVertical, pjHorizontal, pjGraphCurrentDate, pjGraphTitleHorizontal, pjGraphTitleVertical, pjGraphProjectStart, pjGraphProjectFinish, or pjGraphStatusDate. If the Task Sheet or Resource Sheet is active: pjSheetColumns, pjSheetRows, pjSheetTitleHorizontal, pjSheetTitleVertical, or pjSheetPageBreaks. If the Task Usage or Resource Usage view is active: pjUsageColumns, pjUsageRows, pjUsageSheetRows, pjUsageSheetColumns, pjUsageTitleHorizontal, pjUsageTitleVertical, or pjUsagePageBreaks. |
NormalType | Optional | Variant | The type for normal gridlines. Can be one of the following PjLineType constants: pjNoLines, pjContinuous, pjCloseDot, pjDot, or pjDash. |
NormalColor | Optional | Long | The color of normal gridlines. Can be one of the following PjColor constants:
pjColorAutomaticpjNavy
pjAquapjOlive
pjBlackpjPurple
pjBluepjRed
pjFuchsiapjSilver
pjGraypjTeal
pjGreenpjYellow
pjLimepjWhite
pjMaroon
|
pjColorAutomatic | pjNavy | ||
pjAqua | pjOlive | ||
pjBlack | pjPurple | ||
pjBlue | pjRed | ||
pjFuchsia | pjSilver | ||
pjGray | pjTeal | ||
pjGreen | pjYellow | ||
pjLime | pjWhite | ||
pjMaroon | |||
Interval | Optional | Integer | A number from 0 to 99 that specifies the interval between gridlines. |
IntervalType | Optional | Long | The type for secondary gridlines. Can be one of the PjLineType constants. |
IntervalColor | Optional | Long | The color of secondary gridlines. Can be one of the PjColor constants. |
Return Value
Boolean
Example
The following example changes the gridlines to red.
Visual Basic for Applications |
---|
|
See Also