Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxEdit.SetSelection Method

Sets the starting and ending positions of the current selection in the edit control portion.

Syntax

VB.NETobject.SetSelection(ByVal iStart As Integer, ByVal iEnd As Integer)
VBobject.SetSelection(ByVal iStart As Long, ByVal iEnd As Long)
C#.NETvoid object.SetSelection(int iStart, int iEnd);
VC++HRESULT object->SetSelection(long iStart, long iEnd);
CHRESULT object->raw_SetSelection(long iStart, long iEnd);

object

A SftBoxEdit object.

iStart

The zero-based index of the first character where the selection is to start. If iStart is 0 and iEnd is -1, all the text in the edit control portion is selected. If iStart is -1, any current selection is removed.

iEnd

The zero-based index of the last character before which the selection is to end. If iStart is 0 and iEnd is -1, all the text in the edit control portion is selected.

Comments

The SetSelection method sets the starting and ending positions of the current selection in the edit control portion.

The text of the current selection in the edit control portion can be defined using the Edit.SelText property.

See Also SftBoxEdit Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.