SelectedText

Parent Previous Next

SelectedText

This property returns the text item selected in the combo-box object.


Function Definition:


            string SelectedText  {get; set;}


.     get: Permits the user to read the string value.

.     set: Permits the user to write the string value.



To configure this function, follow the steps below:


1.   In an object event, configure the SelectedText function: ComboBoxObjectName.SelectedText;


2.   During the execution of RunTime, run the configured event.



Example Get:


In the graphic document, the user has one Combo-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.SelectedText;


In this event, the GraphicObject2 will exhibit the string value indicating the selected item.



Example Set:


In the graphic document, the user has one Combo-Box object (named as GraphicObject1). In a Button object (named as GraphicObject2) the user configures the MouseUp event with the following event:


GraphicObject1.SelectedText = "Item1";


In this event, the GraphicObject1 will select the Item1 value in the combo-box value, if it exists. If the value configured in the event does not exist in the ItemList, the event will not select any value.



 

Note: This property exists only to the following objects:

.     Combo-Box