X2
This function will configure the location of the X2 point of the object. The user will be able to read/write value to the object location.
Function Definition:
double X2 {get; set;}
. get: Permits the user to read the double value.
. set: Permits the user to write the double value.
To configure this function, follow the steps below:
1. In an object event, configure the X2 function: LineObjectName.X2;
2. During the execution of RunTime, run the configured event.
Example Get:
In the graphic document, the user has one Line object (named as GraphicObject1). In a Text-Box object (named as GraphicObject2) the user configures the MouseUp event with the following event:
GraphicObject2.Text = GraphicObject1.X2;
In this event, the GraphicObject2 will exhibit the double value indicating the X2 position of the object relative to the left edge of the Graphic Document.
Example Set:
In the graphic document, the user has one Line object (named as GraphicObject1). In a Button object (named as GraphicObject2) the user configures the MouseUp event with the following event:
GraphicObject1.X2 = 100;
In this event, the GraphicObject1 will be moved, that is, the X2 point will be placed in the pixel 100 relative to the left edge of the Graphic Document.
|
Note: This property exists only to the following objects: . Line |