Y1
This function will configure the location of the Y1 point of the object. The user will be able to read/write value to the object location.
Function Definition:
double Y1 {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 Y1 function: LineObjectName.Y1;
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.Y1;
In this event, the GraphicObject2 will exhibit the double value indicating the Y1 position of the object relative to the top 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.Y1 = 100;
In this event, the GraphicObject1 will be moved, that is, the Y1 point will be placed in the pixel 100 relative to the left top of the Graphic Document.
|
Note: This property exists only to the following objects: . Line |