4 writes to _maskedTextProvider
System.Windows.Forms (4)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (4)
150_maskedTextProvider = maskedTextProvider; 2257_maskedTextProvider = clonedProvider; 2514_maskedTextProvider = newProvider; 2586_maskedTextProvider = newProvider;
105 references to _maskedTextProvider
System.Windows.Forms (105)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (105)
145[MemberNotNull(nameof(_maskedTextProvider))] 159_passwordChar = _maskedTextProvider.PasswordChar; 169_flagState[s_cutCopyIncludePrompt] = _maskedTextProvider.IncludePrompt; 170_flagState[s_cutCopyIncludeLiterals] = _maskedTextProvider.IncludeLiterals; 204return _maskedTextProvider.AllowPromptAsInput; 208if (value != _maskedTextProvider.AllowPromptAsInput) 212_maskedTextProvider.Mask, 213_maskedTextProvider.Culture, 215_maskedTextProvider.PromptChar, 216_maskedTextProvider.PasswordChar, 217_maskedTextProvider.AsciiOnly); 248return _maskedTextProvider.AsciiOnly; 253if (value != _maskedTextProvider.AsciiOnly) 257_maskedTextProvider.Mask, 258_maskedTextProvider.Culture, 259_maskedTextProvider.AllowPromptAsInput, 260_maskedTextProvider.PromptChar, 261_maskedTextProvider.PasswordChar, 345return _maskedTextProvider.Culture; 352if (!_maskedTextProvider.Culture.Equals(value)) 356_maskedTextProvider.Mask, 358_maskedTextProvider.AllowPromptAsInput, 359_maskedTextProvider.PromptChar, 360_maskedTextProvider.PasswordChar, 361_maskedTextProvider.AsciiOnly); 477return _maskedTextProvider.IncludeLiterals; 481_maskedTextProvider.IncludeLiterals = value; 493return _maskedTextProvider.IncludePrompt; 497_maskedTextProvider.IncludePrompt = value; 637return _flagState[s_isNullMask] ? string.Empty : _maskedTextProvider.Mask; 647if (_flagState[s_isNullMask] == string.IsNullOrEmpty(value) && (_flagState[s_isNullMask] || value == _maskedTextProvider.Mask)) 663string unformattedText = _maskedTextProvider.ToString(false, false); 667if (_maskedTextProvider.IsPassword) 669SetEditControlPasswordChar(_maskedTextProvider.PasswordChar); 711_maskedTextProvider.Culture, 712_maskedTextProvider.AllowPromptAsInput, 713_maskedTextProvider.PromptChar, 714_maskedTextProvider.PasswordChar, 715_maskedTextProvider.AsciiOnly); 743return _maskedTextProvider.MaskCompleted; 755return _maskedTextProvider.MaskFull; 770return _flagState[s_isNullMask] ? null : (MaskedTextProvider)_maskedTextProvider.Clone(); 838return _maskedTextProvider.PasswordChar; 850if (value == _maskedTextProvider.PromptChar) 861_maskedTextProvider.PasswordChar = value; 882=> _maskedTextProvider.IsPassword; 896return _maskedTextProvider.PromptChar; 906if (_maskedTextProvider.PromptChar != value) 909if (value == _passwordChar || value == _maskedTextProvider.PasswordChar) 918_maskedTextProvider.Mask, 919_maskedTextProvider.Culture, 920_maskedTextProvider.AllowPromptAsInput, 922_maskedTextProvider.PasswordChar, 923_maskedTextProvider.AsciiOnly); 983return _maskedTextProvider.ResetOnPrompt; 987_maskedTextProvider.ResetOnPrompt = value; 1002return _maskedTextProvider.ResetOnSpace; 1006_maskedTextProvider.ResetOnSpace = value; 1021return _maskedTextProvider.SkipLiterals; 1025_maskedTextProvider.SkipLiterals = value; 1167Delete(Keys.Delete, 0, _maskedTextProvider.Length); 1174if (_maskedTextProvider.Set(value, out _caretTestPos, out MaskedTextResultHint hint)) 1190Replace(value, /*startPosition*/ 0, /*selectionLen*/ _maskedTextProvider.Length); 1228return _maskedTextProvider.ToString(); 1408_maskedTextProvider.PasswordChar = SystemPasswordChar; 1413_maskedTextProvider.PasswordChar = _passwordChar; 1420SetEditControlPasswordChar(_maskedTextProvider.PasswordChar); 1507Debug.Assert(startPosition >= 0 && ((startPosition + selectionLen) <= _maskedTextProvider.Length), "Invalid position range."); 1527if ((startPosition + selectionLen) == _maskedTextProvider.Length) // At end of string, delete does nothing. 1537if (_maskedTextProvider.RemoveAt(startPosition, endPos, out int tempPos, out MaskedTextResultHint hint)) 1564_caretTestPos = _maskedTextProvider.FindEditPositionFrom(startPosition, Forward); 1568if (_maskedTextProvider.FindAssignedEditPositionFrom(startPosition, Forward) == MaskedTextProvider.InvalidIndex) 1572_caretTestPos = _maskedTextProvider.FindAssignedEditPositionFrom(startPosition, Backward); 1578_caretTestPos = _maskedTextProvider.FindEditPositionFrom(startPosition, Backward); 1610base.SelectInternal(_caretTestPos, 0, _maskedTextProvider.Length); 1666int pos = _maskedTextProvider.FindEditPositionFrom(_maskedTextProvider.LastAssignedPosition + 1, Forward); 1670pos = _maskedTextProvider.LastAssignedPosition + 1; 1717return _maskedTextProvider.ToString(/*ignorePwdChar */ false, includePrompt, /*includeLiterals*/ true, 0, _maskedTextProvider.Length); 1790return _maskedTextProvider.ToString(ignorePasswordChar: true, includePrompt, includeLiterals, selStart, selLength); 1823if (_flagState[s_isNullMask] && _maskedTextProvider.IsPassword) 1825SetEditControlPasswordChar(_maskedTextProvider.PasswordChar); 1920selectionLen = _maskedTextProvider.Length - startPosition; 1924selectionLen = startPosition == _maskedTextProvider.Length /*at end of text*/ ? startPosition : startPosition + 1; 2001int editPos = _maskedTextProvider.FindUnassignedEditPositionFrom(_caretTestPos, Forward); 2171MaskedTextProvider clonedProvider = (MaskedTextProvider)_maskedTextProvider.Clone(); 2202if (!_maskedTextProvider.VerifyEscapeChar(ch, startPosition)) // char won't be escaped, find and edit position for it. 2266base.SelectInternal(_caretTestPos, 0, _maskedTextProvider.Length); 2314if (!_flagState[s_isNullMask] && !_maskedTextProvider.MaskCompleted) 2324textValue = _maskedTextProvider.ToString(/*includePrompt*/ false, IncludeLiterals); 2381return PlaceChar(_maskedTextProvider, ch, startPosition, length, overwrite, out hint); 2394if (startPosition < _maskedTextProvider.Length) 2504newProvider.IncludePrompt = _maskedTextProvider.IncludePrompt; 2505newProvider.IncludeLiterals = _maskedTextProvider.IncludeLiterals; 2506newProvider.SkipLiterals = _maskedTextProvider.SkipLiterals; 2507newProvider.ResetOnPrompt = _maskedTextProvider.ResetOnPrompt; 2508newProvider.ResetOnSpace = _maskedTextProvider.ResetOnSpace; 2521MaskedTextProvider oldProvider = _maskedTextProvider; 2726if (_maskedTextProvider.IsPassword) // cannot copy password to clipboard. 2765if (ReadOnly || _maskedTextProvider.IsPassword) 2817int startEditPos = _maskedTextProvider.FindEditPositionFrom(startPosition, Forward); 2827int endEditPos = _maskedTextProvider.FindEditPositionFrom(startPosition + selectionLen - 1, Backward); 3013base.SelectInternal(_caretTestPos, _lastSelLength, _maskedTextProvider.Length); 3032base.SelectInternal(_caretTestPos, _lastSelLength, _maskedTextProvider.Length);