ComponentOne List 8.0 for ActiveX
SelStart Property

 

SelStart Property

This property returns or sets the starting point of the text selection within the list's editing window.

Syntax

TDBCombo.SelStart= long

Remarks

Read/Write at run time. Not available at design time.

Property applies to TDBCombo control.

If no text is currently selected, then this property indicates the position of the insertion point.

When editing is not is progress, this property returns 0.

Setting SelStart to a value greater than the length of the text in the cell sets it to this length. Changing SelStart moves the entire selection while preserving the value of SelLength, if possible. If there are not enough characters, SelLength is decreased accordingly.

Use the SelStart property in combination with the SelLength and SelText properties to set the insertion point, establish an insertion range, select substrings, or clear text. These properties are useful for implementing copy, cut, and paste operations that transfer string data to and from the clipboard.

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback