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)
25public 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)
168private class SubTextBoxBase : TextBoxBase
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (1)
943private class SubTextBoxBase : TextBoxBase
TextBoxBaseTests.cs (2)
730private class CustomCanUndoTextBoxBase : TextBoxBase 7790private class SubTextBoxBase : TextBoxBase
72 references to TextBoxBase
System.Windows.Forms (12)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1113/// 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)
131[InlineData(typeof(TextBoxBase), "Lines", typeof(StringArrayEditor))] 132[InlineData(typeof(TextBoxBase), "Text", typeof(MultilineStringEditor))]
System.Windows.Forms.Tests (56)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (11)
16using TextBoxBase textBoxBase = new SubTextBoxBase(); 21TextBoxBase.TextBoxBaseAccessibleObject textBoxBaseAccessibleObject = new(textBoxBase); 32using TextBoxBase textBoxBase = new SubTextBoxBase(); 46using TextBoxBase textBoxBase = new SubTextBoxBase(); 58using TextBoxBase textBoxBase = new SubTextBoxBase(); 73using TextBoxBase textBoxBase = new SubTextBoxBase(); 84using TextBoxBase textBoxBase = new SubTextBoxBase(); 94using TextBoxBase textBoxBase = new SubTextBoxBase(); 107using TextBoxBase textBoxBase = new SubTextBoxBase { Size = new Size(width, height) }; 123using TextBoxBase textBoxBase = new SubTextBoxBase(); 158using TextBoxBase textBoxBase = new SubTextBoxBase();
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (39)
10using static System.Windows.Forms.TextBoxBase; 19using TextBoxBase textBoxBase = new SubTextBoxBase(); 35using TextBoxBase textBoxBase = new SubTextBoxBase(); 52using TextBoxBase textBoxBase = new SubTextBoxBase(); 63using TextBoxBase textBoxBase = new SubTextBoxBase(); 73using TextBoxBase textBoxBase = new SubTextBoxBase(); 82using TextBoxBase textBoxBase = new SubTextBoxBase(); 93using TextBoxBase textBoxBase = new SubTextBoxBase(); 107using TextBoxBase textBoxBase = new SubTextBoxBase(); 117using TextBoxBase textBoxBase = new SubTextBoxBase(); 127using TextBoxBase textBoxBase = new SubTextBoxBase(); 137using TextBoxBase textBoxBase = new SubTextBoxBase(); 150using TextBoxBase textBoxBase = new SubTextBoxBase(); 166using TextBoxBase textBoxBase = new SubTextBoxBase { Size = new Size(width, height) }; 180using TextBoxBase textBoxBase = new SubTextBoxBase(); 190using TextBoxBase textBoxBase = new SubTextBoxBase(); 211using TextBoxBase textBoxBase = new SubTextBoxBase(); 228using TextBoxBase textBoxBase = new SubTextBoxBase(); 255using TextBoxBase textBoxBase = new SubTextBoxBase(); 363using TextBoxBase textBoxBase = new SubTextBoxBase(); 378using TextBoxBase textBoxBase = new SubTextBoxBase(); 524using TextBoxBase textBoxBase = new SubTextBoxBase(); 540using TextBoxBase textBoxBase = new SubTextBoxBase(); 556using TextBoxBase textBoxBase = new SubTextBoxBase 570using TextBoxBase textBoxBase = new SubTextBoxBase(); 581using TextBoxBase textBoxBase = new SubTextBoxBase(); 591using TextBoxBase textBoxBase = new SubTextBoxBase(); 604using TextBoxBase textBoxBase = new SubTextBoxBase(); 755using TextBoxBase textBoxBase = new SubTextBoxBase(); 770using TextBoxBase textBoxBase = new SubTextBoxBase(); 791using TextBoxBase textBoxBase = new SubTextBoxBase(); 806using TextBoxBase textBoxBase = new SubTextBoxBase(); 821using TextBoxBase textBoxBase = new SubTextBoxBase(); 845using TextBoxBase textBoxBase = new SubTextBoxBase(); 863using TextBoxBase textBoxBase = new SubTextBoxBase(); 888using TextBoxBase textBoxBase = new SubTextBoxBase 907using TextBoxBase textBoxBase = new SubTextBoxBase 923using TextBoxBase textBoxBase = new SubTextBoxBase(); 936using TextBoxBase textBoxBase = new SubTextBoxBase();
TextBoxBaseTests.cs (6)
759var textBoxBaseAccessibleObject = (TextBoxBase.TextBoxBaseAccessibleObject)control.AccessibilityObject; 760TextBoxBase.TextBoxBaseUiaTextProvider provider = textBoxBaseAccessibleObject.TestAccessor().Dynamic._textProvider; 762Assert.IsType<TextBoxBase.TextBoxBaseUiaTextProvider>(provider); 775TextBoxBase.TextBoxBaseUiaTextProvider provider = control.AccessibilityObject.TestAccessor().Dynamic._textProvider; 777Assert.IsType<TextBoxBase.TextBoxBaseUiaTextProvider>(provider); 784Assert.IsType<TextBoxBase.TextBoxBaseUiaTextProvider>(provider);