ReplaceRange Method (JTextArea)

Class

JTextArea.

Action

Replaces text within the specified range with the new text specified.

Syntax

C#
textArea.ReplaceRange(text, start, end)
VB
textArea.ReplaceRange(text, start, end)
Variable Description
text The text to use as the replacement. String.
start The start position. The value is zero-based. Integer.
end The end position. The value is zero-based. Integer.

Examples

VB

textArea.ReplaceRange("yellow", 5, 9)