Garry's Mod Wiki

Revision Difference

Panel:GetSelectedTextRange#524773

<function name="GetSelectedTextRange" parent="Panel" type="classfunc">⤶ <description>⤶ <note>next update</note>⤶ ⤶ Returns the currently selected range of text.⤶ ⤶ This function will only work on <page>RichText</page> and <page>TextEntry</page> panels and their derivatives.⤶ </description>⤶ <realm>Client</realm>⤶ <added>2020.02.24</added>⤶ <rets>⤶ <ret name="start" type="number">The start of the range. If no text is selected it may be 0 and/or equal to the end range.</ret>⤶ <ret name="endrange" type="number">The end of the range. If no text is selected it may be 0 and/or equal to the start range.</ret>⤶ </rets>⤶ </function>