Widget API: EditBox:HighlightText

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API EditBox HighlightText to API EditBox HighlightText without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget API ← EditBox < HighlightText

Highlights the text in an EditBox.

EditBox:HighlightText([start], [end])

ParametersEdit

ArgumentsEdit

Start
[Optional] Integer - the position at which to start the highlight and defaults to 0 if omitted.
End
[Optional] Integer - the position at which to stop the highlight and defaults to the end of the string if omitted.

DetailsEdit

The position before the first character is 0.

Leaving out both parameters, as in EditBox:HighlightText(), will highlight the entire EditBox content.