Y2

Parent Previous Next

Y2

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


Function Definition:


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


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


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


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