25 writes to _caretTestPos
System.Windows.Forms (25)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (25)
174
_caretTestPos
= 0;
1174
if (_maskedTextProvider.Set(value, out
_caretTestPos
, out MaskedTextResultHint hint))
1181
SelectionStart = ++
_caretTestPos
;
1512
_caretTestPos
= startPosition;
1542
_caretTestPos
= startPosition;
1556
_caretTestPos
= startPosition;
1564
_caretTestPos
= _maskedTextProvider.FindEditPositionFrom(startPosition, Forward);
1572
_caretTestPos
= _maskedTextProvider.FindAssignedEditPositionFrom(startPosition, Backward);
1578
_caretTestPos
= _maskedTextProvider.FindEditPositionFrom(startPosition, Backward);
1583
_caretTestPos
++; // backspace gets ready to remove one position past the edit position.
1589
_caretTestPos
= startPosition;
1596
_caretTestPos
= startPosition;
1994
SelectionStart = ++
_caretTestPos
; // caretTestPos is updated in PlaceChar.
2188
clonedProvider.InsertAt(text, startPosition, out
_caretTestPos
, out hint) :
2189
clonedProvider.Replace(text, startPosition, endPos, out
_caretTestPos
, out hint);
2247
&& !clonedProvider.RemoveAt(startPosition, endPos, out
_caretTestPos
, out MaskedTextResultHint tempHint))
2265
_caretTestPos
= startPosition;
2270
_caretTestPos
= currentCaretPos;
2392
_caretTestPos
= startPosition;
2399
return provider.Replace(ch, startPosition, endPos, out
_caretTestPos
, out hint);
2406
return provider.Replace(ch, startPosition, out
_caretTestPos
, out hint);
2410
return provider.InsertAt(ch, startPosition, out
_caretTestPos
, out hint);
2653
_caretTestPos
= SelectionStart;
2845
_caretTestPos
= startEditPos;
3006
GetSelectionStartAndLength(out
_caretTestPos
, out _lastSelLength);
15 references to _caretTestPos
System.Windows.Forms (15)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (15)
1185
OnMaskInputRejected(new MaskInputRejectedEventArgs(
_caretTestPos
, hint));
1581
if (
_caretTestPos
!= MaskedTextProvider.InvalidIndex)
1587
if (
_caretTestPos
== MaskedTextProvider.InvalidIndex)
1610
base.SelectInternal(
_caretTestPos
, 0, _maskedTextProvider.Length);
2001
int editPos = _maskedTextProvider.FindUnassignedEditPositionFrom(
_caretTestPos
, Forward);
2010
OnMaskInputRejected(new MaskInputRejectedEventArgs(
_caretTestPos
, hint)); // caretTestPos is updated in PlaceChar.
2174
int currentCaretPos =
_caretTestPos
;
2193
OnMaskInputRejected(new MaskInputRejectedEventArgs(
_caretTestPos
, hint));
2226
startPosition =
_caretTestPos
+ 1;
2249
OnMaskInputRejected(new MaskInputRejectedEventArgs(
_caretTestPos
, tempHint));
2266
base.SelectInternal(
_caretTestPos
, 0, _maskedTextProvider.Length);
2665
SelectionStart =
_caretTestPos
;
2846
SelectionStart =
_caretTestPos
;
3013
base.SelectInternal(
_caretTestPos
, _lastSelLength, _maskedTextProvider.Length);
3032
base.SelectInternal(
_caretTestPos
, _lastSelLength, _maskedTextProvider.Length);