15 writes to Mask
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
627_maskedTextBox.Mask = maskDescriptor.Mask; 691_maskedTextBox.Mask = _txtBoxMask.Text;
System.Windows.Forms.Tests (12)
MaskedTextBoxTests.cs (10)
420control.Mask = mask; 433control.Mask = mask; 449control.Mask = "00000"; // Add a mask 490control.Mask = "00000"; 495control.Mask = "(000) 000-0000"; 500control.Mask = "00-00"; 529control.Mask = "000-000"; 552control.Mask = "000-000"; 644Mask = mask, 821_maskedTextBox.Mask = "00000";
System\Windows\Forms\AccessibleObjects\MaskedTextBox.MaskedTextBoxAccessibleObjectTests.cs (2)
104maskedTextBox.Mask = "00/00/0000"; 120maskedTextBox.Mask = useMask ? "00/00/0000" : null;
WinFormsControlsTest (1)
Password.Designer.cs (1)
111maskedTextBox3.Mask = "0000000";
12 references to Mask
System.Windows.Forms (2)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
22[DefaultProperty(nameof(Mask))]
System\Windows\Forms\Controls\TextBox\MaskedTextBox.MaskedTextBoxAccessibleObject.cs (1)
16get => !this.TryGetOwnerAs(out MaskedTextBox? owner) || string.IsNullOrEmpty(owner.Mask)
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\MaskDesignerDialog.cs (4)
64_txtBoxMask.Text = _maskedTextBox.Mask; 303public string Mask => _maskedTextBox.Mask; 422if (!string.IsNullOrEmpty(_maskedTextBox.Mask)) 428if (descriptor.Mask == _maskedTextBox.Mask && descriptor.ValidatingType == _maskedTextBox.ValidatingType)
System\Windows\Forms\Design\MaskedTextBoxDesigner.cs (2)
250if (string.IsNullOrEmpty(maskedTextBox.Mask)) 262if (string.IsNullOrEmpty(maskedTextBox.Mask))
System.Windows.Forms.Design.Tests (3)
System\Windows\Forms\Design\MaskPropertyEditorTests.cs (3)
31result = _editor.EditValue(context, provider.Object, maskedTextBox.Mask); 35result = _maskedTextBox.Mask; 38result.Should().Be(_maskedTextBox.Mask);
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\MaskedTextBox.MaskedTextBoxAccessibleObjectTests.cs (1)
125Assert.Equal(useMask, maskedTextBox.Mask?.Length == actual.Length);