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

AVEVA™ Plant SCADA

DrawLine

  • Last UpdatedJul 13, 2023
  • 1 minute read

Draws a line on the active page.

Syntax

DrawLine(FromXPosition, FromYPosition, ToXPosition, ToYPosition)

FromXPosition:

Distance in pixels from the left-hand side of the page to top left-hand corner of the rectangle that will enclose the line.

FromYPosition:

Distance in pixels from the top of the page to the top-left hand corner of the rectangle that will enclose the line.

ToXPosition:

Distance in pixels from the left-hand side of the page to the bottom right-hand corner of the rectangle that will enclose the line.

ToYPosition:

Distance in pixels from the top of the page to the bottom-right hand corner of the rectangle that will enclose the line.

Return Value

0 (zero) if successful, otherwise an error is returned.

Note: For details on handling return and error values, see Error Handling.

DrawButton, DrawRectangle, DrawPolygonStart, DrawPolygonLine, DrawPolygonEnd, DrawPipeStart, DrawPipeSection, DrawPipeEnd, DrawText, DrawNumber, DrawSymbolSet, DrawCicodeObject

Example

GraphicsBuilder.DrawLine 50, 70, 400, 70

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