Size
This function will configure the size of the object. The user will be able to read/write value to the object size. This function has two members:
. .Height: This member corresponds to Height of the object.
. .Width: This member corresponds to the Width of the object.
Function Definition:
double Size.Height {get; set;}
. get: Permits the user to read the double value.
. set: Permits the user to write the double value.
double Size.Width {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 Size function: ObjectName.Size.Width;
2. During the execution of RunTime, run the configured event.
Example Get:
In the graphic document, the user has one Check-Box 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.Size.Height;
In this event, the GraphicObject2 will exhibit the double value indicating the height of the object.
Example Set:
In the graphic document, the user one Check-Box object (named as GraphicObject1). In a Button object (named as GraphicObject2) the user configures the MouseUp event with the following event:
GraphicObject1.Size.Width = 100;
In this event, the GraphicObject1 will be resized to the width of 100 pixels.
|
Note: This functions can be used by every object |