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

IPen.VerticalGridlinesWidth [Property][Get/Set]

Gets or sets the line width used when drawing 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 width is out of range, the return value will be InvalidArgument. If the pen is deleted, the return value will be GeneralFailure.

Limits

A valid width is 0-8 pixels.

Calling Syntax

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

[VBA]

Sub Example(pen As Object)
Dim width As Integer
`Getting Property value
width = pen.VerticalGridlinesWidth
`Setting Property value
pen.VerticalGridlinesWidth = 3
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
INT width;
// Getting current property value
width = _ObjectGetProperty(hPen, "VerticalGridlinesWidth");
// Setting Property t
_ObjectSetProperty(hPen, "VerticalGridlinesWidth", 3);
END