Using the Process Analyst > Process Analyst for Developers > Automation Model > IPen.VerticalGridlinesColor [Property][Get/Set]

IPen.VerticalGridlinesColor [Property][Get/Set]

Gets or sets the color used to draw the major vertical gridlines.

Defined As

Execution Result

If the property get/set succeeds, the return value will be Success. If the return variable is bad, the return value will be InvalidArgument. If the pen is deleted, the return value will be GeneralFailure.


To calculate the integer value necessary for a color apply the following formula (65536 * Blue) + (256 * Green) + (Red). Where Red, Green and Blue are 0-255.

See Also

IPen.VerticalMinorGridlinesColor [Property][Get/Set]

Calling Syntax

Assumes you have passed a valid pen object into the function.


Sub Example(pen As Object)
Dim color As Long
`Getting Property value
color = pen.VerticalGridlinesColor
`Setting Property value to Red
pen.VerticalGridlinesColor = 255
End Sub


INT color;
// Getting current property value
color = _ObjectGetProperty(hPen, "VerticalGridlinesColor");
// Setting Property to Red
_ObjectSetProperty(hPen, "VerticalGridlinesColor", PackedRGB(255, 0, 0));