7 types derived from TextBoxBase
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
24public partial class RichTextBox : TextBoxBase
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
26public partial class MaskedTextBox : TextBoxBase
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
17public partial class TextBox : TextBoxBase
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
166private class SubTextBoxBase : TextBoxBase
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (1)
941private class SubTextBoxBase : TextBoxBase
TextBoxBaseTests.cs (2)
728private class CustomCanUndoTextBoxBase : TextBoxBase 7788private class SubTextBoxBase : TextBoxBase
72 references to TextBoxBase
System.Windows.Forms (12)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1121/// Make this a method on <see cref="TextBoxBase"/> rather than <see cref="RichTextBox"/> (which is the only
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (6)
18public TextBoxBaseAccessibleObject(TextBoxBase owner) : base(owner) 25internal override Rectangle BoundingRectangle => this.IsOwnerHandleCreated(out TextBoxBase? owner) ? 30if (this.TryGetOwnerAs(out TextBoxBase? owner)) 57internal override bool IsReadOnly => this.TryGetOwnerAs(out TextBoxBase? owner) && owner.ReadOnly; 70public override string? Value => this.TryGetOwnerAs(out TextBoxBase? owner) && !owner.PasswordProtect ? ValueInternal : SR.AccessDenied; 121public override string? KeyboardShortcut => this.TryGetOwnerAs(out TextBoxBase? owner)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (4)
16private readonly WeakReference<TextBoxBase> _owner; 18public TextBoxBaseUiaTextProvider(TextBoxBase owner) 23private TextBoxBase? Owner => _owner.TryGetTarget(out TextBoxBase? owner) ? owner : null;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControlAccessibleObject.cs (1)
6using static System.Windows.Forms.TextBoxBase;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (2)
71((TextBoxBase)Control).Select(0, 0); 77return TypeDescriptor.GetProperties(typeof(TextBoxBase))["Text"]!.ShouldSerializeValue(Component);
System.Windows.Forms.Design.Tests (2)
EnsureEditorsTests.cs (2)
129[InlineData(typeof(TextBoxBase), "Lines", typeof(StringArrayEditor))] 130[InlineData(typeof(TextBoxBase), "Text", typeof(MultilineStringEditor))]
System.Windows.Forms.Tests (56)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (11)
14using TextBoxBase textBoxBase = new SubTextBoxBase(); 19TextBoxBase.TextBoxBaseAccessibleObject textBoxBaseAccessibleObject = new(textBoxBase); 30using TextBoxBase textBoxBase = new SubTextBoxBase(); 44using TextBoxBase textBoxBase = new SubTextBoxBase(); 56using TextBoxBase textBoxBase = new SubTextBoxBase(); 71using TextBoxBase textBoxBase = new SubTextBoxBase(); 82using TextBoxBase textBoxBase = new SubTextBoxBase(); 92using TextBoxBase textBoxBase = new SubTextBoxBase(); 105using TextBoxBase textBoxBase = new SubTextBoxBase { Size = new Size(width, height) }; 121using TextBoxBase textBoxBase = new SubTextBoxBase(); 156using TextBoxBase textBoxBase = new SubTextBoxBase();
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (39)
8using static System.Windows.Forms.TextBoxBase; 17using TextBoxBase textBoxBase = new SubTextBoxBase(); 33using TextBoxBase textBoxBase = new SubTextBoxBase(); 50using TextBoxBase textBoxBase = new SubTextBoxBase(); 61using TextBoxBase textBoxBase = new SubTextBoxBase(); 71using TextBoxBase textBoxBase = new SubTextBoxBase(); 80using TextBoxBase textBoxBase = new SubTextBoxBase(); 91using TextBoxBase textBoxBase = new SubTextBoxBase(); 105using TextBoxBase textBoxBase = new SubTextBoxBase(); 115using TextBoxBase textBoxBase = new SubTextBoxBase(); 125using TextBoxBase textBoxBase = new SubTextBoxBase(); 135using TextBoxBase textBoxBase = new SubTextBoxBase(); 148using TextBoxBase textBoxBase = new SubTextBoxBase(); 164using TextBoxBase textBoxBase = new SubTextBoxBase { Size = new Size(width, height) }; 178using TextBoxBase textBoxBase = new SubTextBoxBase(); 188using TextBoxBase textBoxBase = new SubTextBoxBase(); 209using TextBoxBase textBoxBase = new SubTextBoxBase(); 226using TextBoxBase textBoxBase = new SubTextBoxBase(); 253using TextBoxBase textBoxBase = new SubTextBoxBase(); 361using TextBoxBase textBoxBase = new SubTextBoxBase(); 376using TextBoxBase textBoxBase = new SubTextBoxBase(); 522using TextBoxBase textBoxBase = new SubTextBoxBase(); 538using TextBoxBase textBoxBase = new SubTextBoxBase(); 554using TextBoxBase textBoxBase = new SubTextBoxBase 568using TextBoxBase textBoxBase = new SubTextBoxBase(); 579using TextBoxBase textBoxBase = new SubTextBoxBase(); 589using TextBoxBase textBoxBase = new SubTextBoxBase(); 602using TextBoxBase textBoxBase = new SubTextBoxBase(); 753using TextBoxBase textBoxBase = new SubTextBoxBase(); 768using TextBoxBase textBoxBase = new SubTextBoxBase(); 789using TextBoxBase textBoxBase = new SubTextBoxBase(); 804using TextBoxBase textBoxBase = new SubTextBoxBase(); 819using TextBoxBase textBoxBase = new SubTextBoxBase(); 843using TextBoxBase textBoxBase = new SubTextBoxBase(); 861using TextBoxBase textBoxBase = new SubTextBoxBase(); 886using TextBoxBase textBoxBase = new SubTextBoxBase 905using TextBoxBase textBoxBase = new SubTextBoxBase 921using TextBoxBase textBoxBase = new SubTextBoxBase(); 934using TextBoxBase textBoxBase = new SubTextBoxBase();
TextBoxBaseTests.cs (6)
757var textBoxBaseAccessibleObject = (TextBoxBase.TextBoxBaseAccessibleObject)control.AccessibilityObject; 758TextBoxBase.TextBoxBaseUiaTextProvider provider = textBoxBaseAccessibleObject.TestAccessor().Dynamic._textProvider; 760Assert.IsType<TextBoxBase.TextBoxBaseUiaTextProvider>(provider); 773TextBoxBase.TextBoxBaseUiaTextProvider provider = control.AccessibilityObject.TestAccessor().Dynamic._textProvider; 775Assert.IsType<TextBoxBase.TextBoxBaseUiaTextProvider>(provider); 782Assert.IsType<TextBoxBase.TextBoxBaseUiaTextProvider>(provider);