### Replace Selection

To replace selected text in a TextArea, use the API method replaceSelection (requires the JavaObject library).
Class information:
http://docs.oracle.com/javafx/2/api/javafx/scene/control/TextInputControl.html
Reference:
Class TextInputControl
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.control.Control
javafx.scene.control.TextInputControl
Examples
Create a JavaObject and init with an existing TextArea.
Dim TextArea1 As TextArea
Dim JO As JavaObject = TextArea1
replaceSelection
JO.RunMethod("replaceSelection", Array As Object("New Text"))
setSelection
The start and end parameter are int.
JO.RunMethod("setSelection", Array As Object(Start, End))
... many more methods as defined in the TextInput Control API.

Changed: , Category: TextArea, File: T6C261M1928.htm, ID: 1928