EasyLanguage Object Reference

XYPoint Class

The XYPoint class is used to define a drawing object (Ellipse, Rectangle, or TextLabel) point based on a chart X and Y location (relative to the upper left corner of the chart). Drawing objects positioned with an XYPoint will not move with the bars when the chart scrolled.

The following creates an instance of a rectangle that will plot in a chart between a starting window point 150 pixels from the left edge and 50 pixels down from the top to a second point 250 from the left and 100 from the top:

myXYRectangle = Rectangle.create(XYPoint.Create(150,50),XYPoint.Create(250,100));

Similarly, a text object can be created that will plot at in a chart window 175 pixels from the left edge and 25 pixels down from the top:

myXYTextLabel = TextLabel.Create(XYPoint.Create(175,25),"Some text goes here.");

Namespace: elsystem.drawingobjects

[ Expand All ]
Properties

   Additional properties, methods, and events are described in the classes listed under Inheritance Hierarchy (see below).

  Name Type Description
Public property X int Gets or sets an integer representing the X pixel coordinate of the point.
Public property Y int Gets or sets an integer representing the Y pixel coordinate of the point.
Methods
  Name Description
Public property Create Initializes a new instance of the class.
Inheritance Hierarchy

elsystem.Object

  elsystem.DOPoint

    elsystem.DrawingObjects.XYPoint