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