Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

IPen​.HorizontalGridlinesWidth [Property][Get/Set]

IPen​.HorizontalGridlinesWidth [Property][Get/Set]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets or sets the line width used when drawing the major horizontal gridlines.

Defined As

  • [VBA] Integer HorizontalGridlinesWidth

  • [Cicode] INT HorizontalGridlinesWidth

  • [C++] short HorizontalGridlinesWidth

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

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in