[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomComboBox.SelLength

The number of selected UTF-8 characters in the edit box.

Declaration

Source position: stdctrls.pp line 437

public property TCustomComboBox.SelLength : Integer
  read GetSelLength
  write SetSelLength;

Description

SelLength is an Integer property which indicates the number of UTF-8-encoded characters selected in the edit box for the control. SelLength is used along with SelStart to determine the value in SelText.

Use SelStart to determine the position in Text for the selected value in the edit box for the control.

Use SelText to get the content selected in the edit box. Assigning a new value to SelText causes the value in SelLength to be updated.

SelLength is updated in the SelectAll method after the selection text is updated. It is also updated when KeyUp performs auto-completion for alphanumeric values entered in the control.

See also

TCustomComboBox.SelStart

  

zero-based index to the UTF-8 character at the beginning of the selected text in the edit box.

TCustomComboBox.SelText

  

The selected text in the edit box for the control.

TCustomComboBox.Text

  

The value in the edit box for the control.

TCustomComboBox.SelectAll

  

Selects the text content in the edit box for the control.

TCustomComboBox.KeyUp

  

Handles AutoComplete and AutoSelect for the control.

TCustomComboBox.AutoComplete

  

Positions the list box using partial text matching.

TCustomComboBox.AutoCompleteText

  

Options for the behavior of the Auto-Complete feature.


Version 3.2 Generated 2024-02-25 Home