SftMask/OCX 6.5

SftMask.SelLength Property

Softel vdm, Inc.

Defines the length of the selected text.

Syntax       

Get

VB.NET

Len = object.SelLength  As Integer

VB

Len = object.SelLength  As Long

C#.NET

int Len = object.SelLength;

VC++

long Len = object->SelLength;
long Len = object->GetSelLength();

C

HRESULT object->get_SelLength(long* Len);

Delphi

Len := object.SelLength   : Integer;

Put

VB.NET

object.SelLength = Len  As Integer

VB

object.SelLength = Len  As Long

C#.NET

int object.SelLength = Len;

VC++

long object->SelLength = Len;
void object->PutSelLength(long Len);

C

HRESULT object->put_SelLength(long Len);

Delphi

object.SelLength := Len   : Integer;

object

A SftMask object.

Len

Defines the length of the selected text. This value may be negative.

Comments

The SelLength property defines the length of the selected text.

The selected text or current selection always starts at the index defined by the SelStart property, which is also the caret location or insertion point.

The selection extends from the position defined by SelStart towards the end of the text if SelLength is a positive value. If SelLength is a negative value, the selection extends from the position defined by SelStart towards the beginning of the text.


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