Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxEdit.GetSelection Method

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

Syntax

VB.NETobject.GetSelection(ByRef iStart As Integer, ByRef iEnd As Integer)
VBobject.GetSelection(iStart As Long, iEnd As Long)
C#.NETvoid object.GetSelection(out int iStart, out int iEnd);
VC++HRESULT object->GetSelection(long* iStart, long* iEnd);
CHRESULT object->raw_GetSelection(long* iStart, long* iEnd);

object

A SftBoxEdit object.

iStart

Returns the zero-based index of the first character where the selection starts.

iEnd

Returns the zero-based index of the last character before which the selection ends.

Comments

The GetSelection method returns the starting and ending positions of the current selection in the edit control portion.

The Edit.GetSelectionV method is used with Internet Explorer/VBScript.

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

See Also SftBoxEdit Object | Object Hierarchy


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