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

IPen.HorizontalGridlinesStyle [Property][Get/Set]

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

See Also

IPen.HorizontalMinorGridlinesColor [Property][Get/Set], LineStyle [Enumeration]

Calling Syntax

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

[VBA]

Sub Example(pen As Object)
Dim style As Long
`Getting Property value
style = pen.HorizontalGridlinesStyle
`Setting Property value to Dot
pen.HorizontalGridlinesColor = 2
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
INT style;
// Getting current property value
style = _ObjectGetProperty(hPen, "HorizontalGridlinesStyle");
// Setting Property to Dot
_ObjectSetProperty(hPen, "HorizontalGridlinesStyle", 2);
END