26 overrides of Text
System.Windows.Forms (26)
System\Windows\Forms\ActiveX\AxHost.cs (1)
369public override string Text
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
661public override string Text
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1078public override string Text
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
3986public override string Text
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
823public override string Text
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
239public override string Text
System\Windows\Forms\Controls\Labels\Label.cs (1)
723public override string Text
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1058public override string Text
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1622public override string Text
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
835public override string Text
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
902public override string Text
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
448public override string Text
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
447public override string Text
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
823public override string Text
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1062public override string Text
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
341public override string Text
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
509public override string Text
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1276public override string Text
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
373public override string Text
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1361public override string Text
System\Windows\Forms\Form.cs (1)
1948public override string Text
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
836public override string Text
System\Windows\Forms\Panels\Panel.cs (1)
198public override string Text
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
270public override string Text
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
332public override string Text
System\Windows\Forms\UserControl.cs (1)
204public override string Text
125 writes to Text
Accessibility_Core_App (8)
DataControls.Designer.cs (1)
108this.bindingNavigator1.Text = "bindingNavigator1";
Menu_Toolbars_controls.Designer.cs (3)
118menuStrip1.Text = "menuStrip1"; 429statusStrip1.Text = "statusStrip1"; 510toolStrip1.Text = "toolStrip1";
ToolStripContainer.Designer.cs (4)
111this.toolStripContainer2.Text = "toolStripContainer2"; 142this.toolStrip1.Text = "toolStrip1"; 286this.statusStrip1.Text = "statusStrip1"; 344this.menuStrip1.Text = "menuStrip1";
DesignSurface (2)
MainForm.cs (1)
387view.Text = $"Test Form N. {n}";
MainForm.Designer.cs (1)
172this.menuStrip1.Text = "menuStrip1";
PresentationUI (2)
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (2)
146control.Text = String.IsNullOrEmpty(text) ? 163control.Text = (!date.HasValue) ?
System.Windows.Forms (33)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
281control.Text = value;
System\Windows\Forms\Application.ParkingWindow.cs (1)
27Text = "WindowsFormsParkingWindow";
System\Windows\Forms\Control.cs (2)
404Text = text; 9385Text = string.Empty;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
664set => base.Text = value;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1111base.Text = value;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
3989set => base.Text = value;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
255base.Text = value;
System\Windows\Forms\Controls\Labels\Label.cs (1)
726set => base.Text = value;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1080base.Text = value;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1625set => base.Text = value;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
838set => base.Text = value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
905set => base.Text = value;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
451set => base.Text = value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
188_toolStrip.Text = "PropertyGridToolBar";
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
37Text = "Command Pane";
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
56Text = SR.PropertyGridHelpPaneTitle;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
143Text = "PropertyGridView";
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
450set => base.Text = value;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
826set => base.Text = value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1069base.Text = value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
91owner.Text = newValue;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
406set => ControlInternal.Text = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
344set => base.Text = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
214Control.Text = value;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
512set => base.Text = value;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1279set => base.Text = value;
System\Windows\Forms\Form.cs (1)
1951set => base.Text = value;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
839set => base.Text = value;
System\Windows\Forms\Panels\Panel.cs (1)
201set => base.Text = value;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
273set => base.Text = value;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
335set => base.Text = value;
System\Windows\Forms\UserControl.cs (1)
207set => base.Text = value;
System.Windows.Forms.Design (22)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
286protected override void OnValueChanged() => EditControl!.Text = PropertyDescriptor.Converter.ConvertToString(TypeDescriptorContext, Value);
System\ComponentModel\Design\DesignerActionUI.cs (1)
702Text = "DesignerActionTopLevelForm"
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
30Text = "AdornerWindow";
System\Windows\Forms\Design\ComponentTray.cs (3)
82Text = "ComponentTray"; // makes debugging easier 1948Text = name; 2070Text = e.NewName;
System\Windows\Forms\Design\DesignerFrame.cs (2)
39Text = "DesignerFrame"; 355Text = "OverlayControl";
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
105Control.Text = value;
System\Windows\Forms\Design\SelectionUIService.cs (1)
70Text = "SelectionUIOverlay";
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (2)
66Control.Text = value; 82Control.Text = string.Empty;
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
173Text = "ToolStripAdornerWindow";
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
33_contextMenu.Text = "CustomContextMenu";
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
203Text = "CustomContextMenu"
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
92toolStripContextMenu.Text = "CustomContextMenu";
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
730MenuItem.DropDown.Text = $"{MenuItem.Name}.DropDown";
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
80_contextMenu.Text = "CustomContextMenu";
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
280templateNodeContextMenu.Text = "CustomContextMenu"; 1324_contextMenu.Text = "ItemSelectionMenu"; 1428_contextMenu.Text = "ItemSelectionMenu"; 1502_miniToolStrip.Text = text;
System.Windows.Forms.Tests (50)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (16)
331Text = text 346Text = text 361Text = text 431Text = text 456Text = text 480Text = text 531Text = text 547Text = text 563Text = text 672Text = text 698Text = text 723Text = text 1271control.Text = "&Name"; 1662control.Text = "&control"; 1693control.Text = "control"; 1706control.Text = "&control";
System\Windows\Forms\ControlTests.Handlers.cs (4)
2238Text = text 2388Text = text 2519Text = text 4751control.Text = longString;
System\Windows\Forms\ControlTests.Methods.cs (6)
476Text = text 523Text = text 663Text = text 4984control.Text = longString; 5258control.Text = longString; 6568control.Text = "Text";
System\Windows\Forms\ControlTests.Properties.cs (14)
11965Text = value 11971control.Text = value; 11989control.Text = value; 11997control.Text = value; 12019control.Text = "text"; 12024control.Text = "text"; 12029control.Text = null; 12035control.Text = "text"; 12048control.Text = null; 12053control.Text = string.Empty; 12058control.Text = "text"; 12075control.Text = null; 12080control.Text = string.Empty; 12085control.Text = "text";
System\Windows\Forms\ToolStripControlHostTests.cs (2)
36Text = "text" 667c.Text = "Text";
System\Windows\Forms\ToolStripDropDownTests.cs (8)
2672Text = value 2678control.Text = value; 2696control.Text = value; 2704control.Text = value; 2726control.Text = "text"; 2731control.Text = "text"; 2736control.Text = null; 2742control.Text = "text";
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\ToolStripItemTests.Dpi.cs (1)
44toolStrip.Text = "toolStrip1";
WinFormsControlsTest (7)
MenuStripAndCheckedListBox.Designer.cs (1)
78this.menuStrip1.Text = "menuStrip1";
ToolStripSeparatorPreferredSize.cs (1)
52_toolStrip1.Text = "toolStrip1";
ToolStripTests.Designer.cs (5)
92this.toolStrip1.Text = "toolStrip1"; 112this.toolStrip2.Text = "toolStrip2"; 124this.toolStrip3.Text = "toolStrip3"; 136this.toolStrip4.Text = "toolStrip4"; 385this.statusStrip1.Text = "statusStrip1";
146 references to Text
System.Windows.Forms (40)
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (1)
327=> accessibleObject.Owner?.Text ?? defaultText;
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
351string text = owner.Text;
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
276get => GetControl()?.Text ?? string.Empty;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
713char mnemonic = WindowsFormsUtils.GetMnemonic(control.Text, true);
System\Windows\Forms\Control.cs (6)
34[DefaultProperty(nameof(Text))] 3130if (value == Text) 7466_text = Text; 9156Debug.WriteLineIf(CoreSwitches.PerfTrack.Enabled, $"RecreateHandle: {GetType().FullName} [Text={Text}]"); 10659/// Determines if the <see cref="Text"/> property needs to be persisted. 10664return Text.Length != 0;
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (2)
34if ((!useMnemonic || !WindowsFormsUtils.ContainsMnemonic(control.Text)) && previousLabel is not null && previousLabel.UseMnemonic) 40mnemonic = WindowsFormsUtils.GetMnemonic(control.Text, convertToUpperCase: false);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
663get => base.Text;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1090if (string.Compare(candidate, base.Text, true, CultureInfo.CurrentCulture) == 0) 1102return base.Text;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
3988get => base.Text;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
825get => base.Text;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
241get => base.Text;
System\Windows\Forms\Controls\Labels\Label.cs (1)
725get => base.Text;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1075return base.Text;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1624get => base.Text;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
837get => base.Text;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
904get => base.Text;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
450get => base.Text;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
449get => base.Text;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
825get => base.Text;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1064get => base.Text; 1067if (value != base.Text)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
73=> this.TryGetOwnerAs(out Control? owner) && owner.Text is { } text ? text : string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
405get => ControlInternal.Text;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
343get => base.Text;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
210return Control.Text;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
511get => base.Text;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1278get => base.Text;
System\Windows\Forms\Form.cs (1)
1950get => base.Text;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
838get => base.Text;
System\Windows\Forms\Panels\Panel.cs (1)
200get => base.Text;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
272get => base.Text;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
334get => base.Text;
System\Windows\Forms\UserControl.cs (1)
206get => base.Text;
System.Windows.Forms.Design (9)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
312SetValue(EditControl!.Text); 356public override string? Value => Owner?.Text;
System\Windows\Forms\Design\CommandSet.cs (1)
2079if (name is not null && name.Equals(c.Text))
System\Windows\Forms\Design\ComponentTray.cs (3)
1990Size sz = Size.Ceiling(gr.MeasureString(Text, Font)); 2295e.Graphics.DrawString(Text, Font, foreBrush, rc, format); 2308e.Graphics.DrawString(Text, Font, foreBrush, rc);
System\Windows\Forms\Design\RichTextBoxDesigner.cs (2)
93return Control.Text; 97string oldText = Control.Text;
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
63get => Control.Text;
System.Windows.Forms.Tests (94)
System\Windows\Forms\ContainerControlTests.cs (1)
113Assert.Empty(control.Text);
System\Windows\Forms\ControlBindingsCollectionTests.cs (27)
50yield return new object[] { new Binding(nameof(Control.Text), new object(), "dataMember") }; 73Binding binding3 = new(nameof(Control.Text), 1, "dataMember"); 78Binding binding4 = new(nameof(Control.Text), 1, "dataMember"); 92Binding binding = new(nameof(Control.Text), 1, "dataMember"); 102Binding binding1 = new(nameof(SubControl.Text), 1, "dataMember"); 126Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember"); 129Assert.Equal(nameof(Control.Text), binding.PropertyName); 143Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember", true); 146Assert.Equal(nameof(Control.Text), binding.PropertyName); 160Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged); 163Assert.Equal(nameof(Control.Text), binding.PropertyName); 177Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null"); 180Assert.Equal(nameof(Control.Text), binding.PropertyName); 194Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString"); 197Assert.Equal(nameof(Control.Text), binding.PropertyName); 211Binding binding = collection.Add(nameof(Control.Text), 1, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString", CultureInfo.CurrentCulture); 214Assert.Equal(nameof(Control.Text), binding.PropertyName); 255Binding binding = new(nameof(Control.Text), new object(), "dataMember"); 258Assert.Throws<ArgumentException>("binding", () => collection.Add(new Binding(nameof(Control.Text), new object(), "dataMember"))); 259Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember")); 260Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember", true)); 261Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember", true, DataSourceUpdateMode.OnPropertyChanged)); 262Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null")); 263Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString")); 264Assert.Throws<ArgumentException>("binding", () => collection.Add(nameof(Control.Text), new object(), "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString", CultureInfo.CurrentCulture)); 400Binding binding = new(nameof(Control.Text), new object(), "member"); 413Binding binding = new(nameof(Control.Text), new object(), "member");
System\Windows\Forms\ControlTests.cs (5)
91Assert.Empty(control.Text); 180Assert.Equal(expectedText, control.Text); 276Assert.Equal(expectedText, control.Text); 372Assert.Same(expectedText, control.Text); 468Assert.Same(expectedText, control.Text);
System\Windows\Forms\ControlTests.Handlers.cs (9)
2256Assert.Equal(expectedText, control.Text); 2264Assert.Equal(expectedText, control.Text); 2404Assert.Equal(expectedText, control.Text); 2412Assert.Equal(expectedText, control.Text); 2537Assert.Equal(expectedText, control.Text); 2545Assert.Equal(expectedText, control.Text); 4752Assert.Equal(longString, control.Text); 4757Assert.Empty(control.Text); 4764Assert.Empty(control.Text);
System\Windows\Forms\ControlTests.Methods.cs (14)
483Assert.Equal(expectedText, control.Text); 530Assert.Equal(expectedText, control.Text); 535Assert.Equal(expectedText, control.Text); 542Assert.Equal(expectedText, control.Text); 670Assert.Equal(expectedText, control.Text); 4985Assert.Equal(longString, control.Text); 4990Assert.Empty(control.Text); 4992Assert.Empty(control.Text); 5259Assert.Equal(longString, control.Text); 5264Assert.Empty(control.Text); 5266Assert.Empty(control.Text); 6565Assert.Empty(control.Text); 6570Assert.Empty(control.Text); 6574Assert.Empty(control.Text);
System\Windows\Forms\ControlTests.Properties.cs (18)
11967Assert.Equal(expected, control.Text); 11972Assert.Equal(expected, control.Text); 11990Assert.Equal(expected, control.Text); 11998Assert.Equal(expected, control.Text); 12020Assert.Equal("text", control.Text); 12025Assert.Equal("text", control.Text); 12030Assert.Empty(control.Text); 12036Assert.Equal("text", control.Text); 12043PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Text)]; 12049Assert.Empty(control.Text); 12054Assert.Empty(control.Text); 12059Assert.Equal("text", control.Text); 12063Assert.Empty(control.Text); 12070PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Text)]; 12076Assert.Empty(control.Text); 12081Assert.Empty(control.Text); 12086Assert.Equal("text", control.Text); 12090Assert.Empty(control.Text);
System\Windows\Forms\ListControlTests.cs (1)
103Assert.Empty(control.Text);
System\Windows\Forms\MdiClientTests.cs (1)
80Assert.Empty(control.Text);
System\Windows\Forms\MenuStripTests.cs (1)
138Assert.Empty(control.Text);
System\Windows\Forms\ScrollableControlTests.cs (1)
106Assert.Empty(control.Text);
System\Windows\Forms\StatusStripTests.cs (1)
141Assert.Empty(control.Text);
System\Windows\Forms\ToolStripControlHostTests.cs (4)
114Assert.Equal(c.Text, item.Text); 668Assert.Equal("Text", c.Text); 2255Assert.Equal(expected, c.Text); 2261Assert.Equal(expected, c.Text);
System\Windows\Forms\ToolStripDropDownTests.cs (9)
146Assert.Empty(control.Text); 2674Assert.Equal(expected, control.Text); 2679Assert.Equal(expected, control.Text); 2697Assert.Equal(expected, control.Text); 2705Assert.Equal(expected, control.Text); 2727Assert.Equal("text", control.Text); 2732Assert.Equal("text", control.Text); 2737Assert.Empty(control.Text); 2743Assert.Equal("text", control.Text);
System\Windows\Forms\ToolStripTests.cs (2)
154Assert.Empty(control.Text); 309Assert.Empty(control.Text);
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
573HwndSourceParameters HWSParam = new HwndSourceParameters(this.Text, cp.Width, cp.Height); 1015OnPropertyChanged("Text", this.Text);
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
87if (sender.Text == "Real Button Standard Pressed")