HeaderPane
Main
Hide
Share Link
Print

SelStart Property, SftMask Object

Defines the start of the selected text.

Syntax

Get

C#int Start = object.SelStart;
VB.NETStart = object.SelStart As Integer
C++long Start = object->SelStart;
long Start = object->GetSelStart();
CHRESULT object->get_SelStart(long* Start);

Put

C#int object.SelStart = Start;
VB.NETobject.SelStart = Start As Integer
C++long object->SelStart = Start;
void object->PutSelStart(long Start);
CHRESULT object->put_SelStart(long Start);

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 ensure that the insertion point is at a suitable location for data entry.

Examples

C++ View entire sample code

    _ASSERT(m_vSftMaskAmount != NULL);
    m_vSftMaskIPAddr = GetDlgItem(IDC_SFTMASKIPADDR)->GetControlUnknown();
    _ASSERT(m_vSftMaskIPAddr != NULL);
    m_vSftMaskPswd = GetDlgItem(IDC_SFTMASKPSWD)->GetControlUnknown();
    _ASSERT(m_vSftMaskPswd != NULL);

    // phone number	
    m_vSftMaskPhone->Text = _bstr_t(_T("9415058600"));
    m_vSftMaskPhone->SelStart = 1;

    // social security number
    m_vSftMaskSSN->Text = _bstr_t(_T("444-12-1111"));

    // today's date
    m_vSftMaskTodaysDate->Contents->DateTime = COleDateTime::GetCurrentTime();;

See Also SftMask Object | Object Hierarchy


Last Updated 11/15/2026 - (email)
© 2026 Softel vdm, Inc.