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

AVEVA™ Plant SCADA

ITrendCursor​.PenLabelY [Property][Get/Set]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Get or Set the label's Y-Axis position of the specified pen on this cursor.

Defined As

  • [VBA] Double PenLabelY(pen As Object)

  • [Cicode] REAL PenLabelY (OBJECT pen)

  • [C++] HRESULT PenLabelY (IPen* pIPen, double labelY)

Remarks

The label position is represented in pixels

Calling Syntax

This example assumes you have a valid reference to a cursor and a pen.

[VBA]

Sub Example(cursor As Object, pen As Object)
Dim labelY As Double
`Getting Property value
labelY = cursor.PenLabelY(pen)
`Setting Property value (100)
cursor.PenLabelY(pen) = 100
End Sub

[Cicode]

FUNCTION Example(OBJECT hCursor, OBJECT hPen)
REAL labelY;
// Getting current property value
labelY = _ObjectCallMethod(hCursor , "get_PenLabelY", hPen);
// Setting Property to 100
_ObjectCallMethod(hCursor , "put_PenLabelY", hPen, 100);
END

See Also

ITrendCursor.PenLabelWidth [Property][Get/Set]

ITrendCursor.PenLabelHeight [Property][Get/Set]

ITrendCursor.PenLabelX [Property][Get/Set]

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