SftMask/OCX 6.5

SftMask.SelStart Property

Softel vdm, Inc.

Defines the start of the selected text.

Syntax       

Get

VB.NET

Start = object.SelStart  As Integer

VB

Start = object.SelStart  As Long

C#.NET

int Start = object.SelStart;

VC++

long Start = object->SelStart;
long Start = object->GetSelStart();

C

HRESULT object->get_SelStart(long* Start);

Delphi

Start := object.SelStart   : Integer;

Put

VB.NET

object.SelStart = Start  As Integer

VB

object.SelStart = Start  As Long

C#.NET

int object.SelStart = Start;

VC++

long object->SelStart = Start;
void object->PutSelStart(long Start);

C

HRESULT object->put_SelStart(long Start);

Delphi

object.SelStart := Start   : Integer;

object

A SftMask object.

Start

Defines the start of the selected text. This is the location where the selection begins and is also the insertion point.

Comments

The SelStart property defines the start 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.

The OptimalPosition method can be used to insure that the insertion point is at a suitable location for data entry.


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