7 types derived from TextBoxBase
System.Windows.Forms (3)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
24
public partial class RichTextBox :
TextBoxBase
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
25
public partial class MaskedTextBox :
TextBoxBase
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
17
public partial class TextBox :
TextBoxBase
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
168
private class SubTextBoxBase :
TextBoxBase
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (1)
943
private class SubTextBoxBase :
TextBoxBase
TextBoxBaseTests.cs (2)
730
private class CustomCanUndoTextBoxBase :
TextBoxBase
7790
private 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)
18
public TextBoxBaseAccessibleObject(
TextBoxBase
owner) : base(owner)
25
internal override Rectangle BoundingRectangle => this.IsOwnerHandleCreated(out
TextBoxBase
? owner) ?
30
if (this.TryGetOwnerAs(out
TextBoxBase
? owner))
57
internal override bool IsReadOnly => this.TryGetOwnerAs(out
TextBoxBase
? owner) && owner.ReadOnly;
70
public override string? Value => this.TryGetOwnerAs(out
TextBoxBase
? owner) && !owner.PasswordProtect ? ValueInternal : SR.AccessDenied;
121
public override string? KeyboardShortcut => this.TryGetOwnerAs(out
TextBoxBase
? owner)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (4)
16
private readonly WeakReference<
TextBoxBase
> _owner;
18
public TextBoxBaseUiaTextProvider(
TextBoxBase
owner)
23
private
TextBoxBase
? Owner => _owner.TryGetTarget(out
TextBoxBase
? owner) ? owner : null;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControlAccessibleObject.cs (1)
6
using static System.Windows.Forms.
TextBoxBase
;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (2)
71
((
TextBoxBase
)Control).Select(0, 0);
77
return 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)
16
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
21
TextBoxBase
.TextBoxBaseAccessibleObject textBoxBaseAccessibleObject = new(textBoxBase);
32
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
46
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
58
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
73
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
84
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
94
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
107
using
TextBoxBase
textBoxBase = new SubTextBoxBase { Size = new Size(width, height) };
123
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
158
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (39)
10
using static System.Windows.Forms.
TextBoxBase
;
19
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
35
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
52
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
63
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
73
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
82
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
93
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
107
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
117
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
127
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
137
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
150
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
166
using
TextBoxBase
textBoxBase = new SubTextBoxBase { Size = new Size(width, height) };
180
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
190
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
211
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
228
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
255
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
363
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
378
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
524
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
540
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
556
using
TextBoxBase
textBoxBase = new SubTextBoxBase
570
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
581
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
591
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
604
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
755
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
770
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
791
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
806
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
821
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
845
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
863
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
888
using
TextBoxBase
textBoxBase = new SubTextBoxBase
907
using
TextBoxBase
textBoxBase = new SubTextBoxBase
923
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
936
using
TextBoxBase
textBoxBase = new SubTextBoxBase();
TextBoxBaseTests.cs (6)
759
var textBoxBaseAccessibleObject = (
TextBoxBase
.TextBoxBaseAccessibleObject)control.AccessibilityObject;
760
TextBoxBase
.TextBoxBaseUiaTextProvider provider = textBoxBaseAccessibleObject.TestAccessor().Dynamic._textProvider;
762
Assert.IsType<
TextBoxBase
.TextBoxBaseUiaTextProvider>(provider);
775
TextBoxBase
.TextBoxBaseUiaTextProvider provider = control.AccessibilityObject.TestAccessor().Dynamic._textProvider;
777
Assert.IsType<
TextBoxBase
.TextBoxBaseUiaTextProvider>(provider);
784
Assert.IsType<
TextBoxBase
.TextBoxBaseUiaTextProvider>(provider);