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

IPen.HorizontalGridlinesWidth [Property][Get/Set]

Gets or sets the line width used when drawing the major horizontal 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.

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.HorizontalGridlinesWidth
`Setting Property value
pen.HorizontalGridlinesWidth = 3
End Sub

[Cicode]

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