Defines the start of the selected text.
Get
| C# | int Start = object.SelStart; |
| VB.NET | Start = object.SelStart As Integer |
| C++ | long Start = object->SelStart; long Start = object->GetSelStart(); |
| C | HRESULT object->get_SelStart(long* Start); |
Put
| C# | int object.SelStart = Start; |
| VB.NET | object.SelStart = Start As Integer |
| C++ | long object->SelStart = Start; void object->PutSelStart(long Start); |
| C | HRESULT object->put_SelStart(long Start); |
object
Start
Defines the start of the selected text. This is the location where the selection begins and is also the insertion point.
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.
_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