ComponentOne VSFlexGrid 8.0
EditSelLength Property

Returns or the number of characters selected in the editor.

Syntax

[form!]VSFlexGrid.EditSelLength[ = value As Long ]

Remarks

This property works in conjunction with the EditSelStart and EditSelText properties, while the control is in cell-editing mode.

Use these properties for tasks such as setting the insertion point, establishing an insertion range, selecting substrings in the editor, or clearing text. Used in conjunction with the Visual Basic Clipboard object, these properties are useful for copy, cut, and paste operations.

Notes

1.   Setting SelLength less than 0 causes a runtime error.

2.   Setting SelStart greater than the text length sets the property to the existing text length.

3.   Changing SelStart changes the selection to an insertion point and sets SelLength to 0.

4.   Setting SelText to a new value replaces the selected text with the new string and sets SelLength to 0.

The following code selects characters 6 through 8 whenever a cell is clicked.

   Private Sub fg_Click()

       fg.EditCell

       fg.EditSelStart = 5

       fg.EditSelLength = 3

   End Sub

Data Type

Long

 

 


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

Product Support Forum  |  Documentation Feedback