.TextBox.Selection.Length (gb.qt4)

Property Read Length As Integer

Returns the length of the current selected text, or 0 if no text is selected.