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); 2247&& !clonedProvider.RemoveAt(startPosition, endPos, out _caretTestPos, out MaskedTextResultHint tempHint)) 2265_caretTestPos = startPosition; 2270_caretTestPos = currentCaretPos; 2392_caretTestPos = startPosition; 2399return provider.Replace(ch, startPosition, endPos, out _caretTestPos, out hint); 2406return provider.Replace(ch, startPosition, out _caretTestPos, out hint); 2410return provider.InsertAt(ch, startPosition, out _caretTestPos, out hint); 2653_caretTestPos = SelectionStart; 2845_caretTestPos = startEditPos; 3006GetSelectionStartAndLength(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)); 2226startPosition = _caretTestPos + 1; 2249OnMaskInputRejected(new MaskInputRejectedEventArgs(_caretTestPos, tempHint)); 2266base.SelectInternal(_caretTestPos, 0, _maskedTextProvider.Length); 2665SelectionStart = _caretTestPos; 2846SelectionStart = _caretTestPos; 3013base.SelectInternal(_caretTestPos, _lastSelLength, _maskedTextProvider.Length); 3032base.SelectInternal(_caretTestPos, _lastSelLength, _maskedTextProvider.Length);