SftBox/OCX 4.5

SftBoxEdit.GetSelectionV Method

Softel vdm, Inc.

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

Syntax       

VB.NET

object.GetSelectionV(ByRef iStart As Object, ByRef iEnd As Object)

VB

object.GetSelectionV(iStart As Variant, iEnd As Variant)

C#.NET

void object.GetSelectionV(out object iStart, out object iEnd);

VC++

HRESULT object->GetSelectionV(const _variant_t&* iStart, const _variant_t&* iEnd);

C

HRESULT object->raw_GetSelectionV(VARIANT* iStart, VARIANT* iEnd);

Delphi

procedure object.GetSelectionV(out iStart : OleVariant, out iEnd : OleVariant);

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 GetSelectionV 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.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com