25 writes to _caretTestPos
System.Windows.Forms (25)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (25)
174_caretTestPos = 0; 1174if (_maskedTextProvider.Set(value, out _caretTestPos, out MaskedTextResultHint hint)) 1181SelectionStart = ++_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; 1994SelectionStart = ++_caretTestPos; // caretTestPos is updated in PlaceChar. 2188clonedProvider.InsertAt(text, startPosition, out _caretTestPos, out hint) : 2189clonedProvider.Replace(text, startPosition, endPos, out _caretTestPos, out hint); 2250if (!clonedProvider.RemoveAt(startPosition, endPos, out _caretTestPos, out tempHint)) 2276_caretTestPos = startPosition; 2281_caretTestPos = currentCaretPos; 2403_caretTestPos = startPosition; 2410return provider.Replace(ch, startPosition, endPos, out _caretTestPos, out hint); 2417return provider.Replace(ch, startPosition, out _caretTestPos, out hint); 2421return provider.InsertAt(ch, startPosition, out _caretTestPos, out hint); 2664_caretTestPos = SelectionStart; 2856_caretTestPos = startEditPos; 3017GetSelectionStartAndLength(out _caretTestPos, out _lastSelLength);
15 references to _caretTestPos
System.Windows.Forms (15)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (15)
1185OnMaskInputRejected(new MaskInputRejectedEventArgs(_caretTestPos, hint)); 1581if (_caretTestPos != MaskedTextProvider.InvalidIndex) 1587if (_caretTestPos == MaskedTextProvider.InvalidIndex) 1610base.SelectInternal(_caretTestPos, 0, _maskedTextProvider.Length); 2001int editPos = _maskedTextProvider.FindUnassignedEditPositionFrom(_caretTestPos, Forward); 2010OnMaskInputRejected(new MaskInputRejectedEventArgs(_caretTestPos, hint)); // caretTestPos is updated in PlaceChar. 2174int currentCaretPos = _caretTestPos; 2193OnMaskInputRejected(new MaskInputRejectedEventArgs(_caretTestPos, hint)); 2228startPosition = _caretTestPos + 1; 2252OnMaskInputRejected(new MaskInputRejectedEventArgs(_caretTestPos, tempHint)); 2277base.SelectInternal(_caretTestPos, 0, _maskedTextProvider.Length); 2676SelectionStart = _caretTestPos; 2857SelectionStart = _caretTestPos; 3024base.SelectInternal(_caretTestPos, _lastSelLength, _maskedTextProvider.Length); 3043base.SelectInternal(_caretTestPos, _lastSelLength, _maskedTextProvider.Length);