X1

Parent Previous Next

X1

This function will configure the location of the X1 point of the object. The user will be able to read/write value to the object location.


Function Definition:


            double X1  {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 X1 function: LineObjectName.X1;


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.X1;


In this event, the GraphicObject2 will exhibit the double value indicating the X1 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.X1 = 100;


In this event, the GraphicObject1 will be moved, that is, the X1 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