30 overrides of Text
System.Windows.Forms (30)
System\Windows\Forms\ActiveX\AxHost.cs (1)
369
public override string
Text
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
677
public override string
Text
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1155
public override string
Text
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
3993
public override string
Text
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
821
public override string
Text
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
261
public override string
Text
System\Windows\Forms\Controls\Labels\Label.cs (1)
721
public override string
Text
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1056
public override string
Text
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1624
public override string
Text
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
830
public override string
Text
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
899
public override string
Text
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
455
public override string
Text
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1218
public override string
Text
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
446
public override string
Text
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
826
public override string
Text
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1340
public override string
Text
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
341
public override string
Text
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
507
public override string
Text
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1397
public override string
Text
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGrid.cs (1)
446
public override string
Text
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBar.cs (1)
116
public override string
Text
{ get => throw null; set { } }
System\Windows\Forms\Controls\Unsupported\ToolBar\ToolBar.cs (1)
172
public override string
Text
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
412
public override string
Text
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
1355
public override string
Text
System\Windows\Forms\Form.cs (1)
2028
public override string
Text
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
836
public override string
Text
System\Windows\Forms\Panels\Panel.cs (1)
194
public override string
Text
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
272
public override string
Text
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
325
public override string
Text
System\Windows\Forms\UserControl.cs (1)
204
public override string
Text
58 writes to Text
PresentationUI (2)
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (2)
143
control?.
Text
= String.IsNullOrEmpty(text) ?
157
control?.
Text
= (!date.HasValue) ?
System.Windows.Forms (34)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
281
control.
Text
= value;
System\Windows\Forms\Application.ParkingWindow.cs (1)
27
Text
= "WindowsFormsParkingWindow";
System\Windows\Forms\Control.cs (2)
426
Text
= text;
10211
Text
= string.Empty;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
680
set => base.
Text
= value;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
1188
base.
Text
= value;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
3996
set => base.
Text
= value;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
277
base.
Text
= value;
System\Windows\Forms\Controls\Labels\Label.cs (1)
724
set => base.
Text
= value;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1078
base.
Text
= value;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1627
set => base.
Text
= value;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
833
set => base.
Text
= value;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
902
set => base.
Text
= value;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
458
set => base.
Text
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
194
_toolStrip.
Text
= "PropertyGridToolBar";
1221
set => base.
Text
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
37
Text
= "Command Pane";
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
56
Text
= SR.PropertyGridHelpPaneTitle;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
144
Text
= "PropertyGridView";
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
449
set => base.
Text
= value;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
829
set => base.
Text
= value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1348
base.
Text
= value;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
91
owner.
Text
= newValue;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
406
set => ControlInternal.
Text
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
344
set => base.
Text
= value;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
214
Control.
Text
= value;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
510
set => base.
Text
= value;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1400
set => base.
Text
= value;
System\Windows\Forms\Form.cs (1)
2031
set => base.
Text
= value;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
839
set => base.
Text
= value;
System\Windows\Forms\Panels\Panel.cs (1)
197
set => base.
Text
= value;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
275
set => base.
Text
= value;
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
328
set => base.
Text
= value;
System\Windows\Forms\UserControl.cs (1)
207
set => base.
Text
= value;
System.Windows.Forms.Design (22)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
286
protected override void OnValueChanged() => EditControl!.
Text
= PropertyDescriptor.Converter.ConvertToString(TypeDescriptorContext, Value);
System\ComponentModel\Design\DesignerActionUI.cs (1)
702
Text
= "DesignerActionTopLevelForm"
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
30
Text
= "AdornerWindow";
System\Windows\Forms\Design\ComponentTray.cs (3)
82
Text
= "ComponentTray"; // makes debugging easier
1930
Text
= name;
2052
Text
= e.NewName;
System\Windows\Forms\Design\DesignerFrame.cs (2)
39
Text
= "DesignerFrame";
352
Text
= "OverlayControl";
System\Windows\Forms\Design\RichTextBoxDesigner.cs (1)
105
Control.
Text
= value;
System\Windows\Forms\Design\SelectionUIService.cs (1)
70
Text
= "SelectionUIOverlay";
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (2)
66
Control.
Text
= value;
82
Control.
Text
= string.Empty;
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
167
Text
= "ToolStripAdornerWindow";
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
33
_contextMenu.
Text
= "CustomContextMenu";
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
200
Text
= "CustomContextMenu"
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
92
toolStripContextMenu.
Text
= "CustomContextMenu";
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
715
MenuItem.DropDown.
Text
= $"{MenuItem.Name}.DropDown";
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
80
_contextMenu.
Text
= "CustomContextMenu";
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
268
templateNodeContextMenu.
Text
= "CustomContextMenu";
1276
_contextMenu.
Text
= "ItemSelectionMenu";
1380
_contextMenu.
Text
= "ItemSelectionMenu";
1454
_miniToolStrip.
Text
= text;
56 references to Text
System.Windows.Forms (45)
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (1)
327
=> accessibleObject.Owner?.
Text
?? defaultText;
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
350
string text = owner.
Text
;
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
276
get => GetControl()?.
Text
?? string.Empty;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
713
char mnemonic = WindowsFormsUtils.GetMnemonic(control.
Text
, true);
System\Windows\Forms\Control.cs (6)
32
[DefaultProperty(nameof(
Text
))]
3396
if (value ==
Text
)
8163
_text =
Text
;
9964
$"RecreateHandle: {GetType().FullName} [Text={
Text
}]");
11496
/// Determines if the <see cref="
Text
"/> property needs to be persisted.
11501
return
Text
.Length != 0;
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (2)
34
if ((!useMnemonic || !WindowsFormsUtils.ContainsMnemonic(control.
Text
)) && previousLabel is not null && previousLabel.UseMnemonic)
40
mnemonic = WindowsFormsUtils.GetMnemonic(control.
Text
, convertToUpperCase: false);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
679
get => base.
Text
;
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1167
if (string.Compare(candidate, base.
Text
, true, CultureInfo.CurrentCulture) == 0)
1179
return base.
Text
;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
3995
get => base.
Text
;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
823
get => base.
Text
;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
263
get => base.
Text
;
System\Windows\Forms\Controls\Labels\Label.cs (1)
723
get => base.
Text
;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1073
return base.
Text
;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
1626
get => base.
Text
;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
832
get => base.
Text
;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
901
get => base.
Text
;
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (1)
457
get => base.
Text
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1220
get => base.
Text
;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
448
get => base.
Text
;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
828
get => base.
Text
;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (2)
1342
get => base.
Text
;
1346
if (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)
405
get => ControlInternal.
Text
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
343
get => base.
Text
;
System\Windows\Forms\Controls\ToolStrips\ToolStripProgressBar.cs (1)
210
return Control.
Text
;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
509
get => base.
Text
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
1399
get => base.
Text
;
System\Windows\Forms\Form.cs (1)
2030
get => base.
Text
;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
838
get => base.
Text
;
System\Windows\Forms\Panels\Panel.cs (1)
196
get => base.
Text
;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
274
get => base.
Text
;
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (4)
80
Size textSize = TextRenderer.MeasureText(Control.
Text
, Control.Font);
156
TextRenderer.MeasureText(control.
Text
, control.Font));
179
Control.
Text
,
439
Size textSize = TextRenderer.MeasureText(control.
Text
, control.Font);
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
327
get => base.
Text
;
System\Windows\Forms\UserControl.cs (1)
206
get => base.
Text
;
System.Windows.Forms.Design (9)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
312
SetValue(EditControl!.
Text
);
356
public override string? Value => Owner?.
Text
;
System\Windows\Forms\Design\CommandSet.cs (1)
2074
if (name is not null && name.Equals(c.
Text
))
System\Windows\Forms\Design\ComponentTray.cs (3)
1972
Size sz = Size.Ceiling(gr.MeasureString(
Text
, Font));
2277
e.Graphics.DrawString(
Text
, Font, foreBrush, rc, format);
2290
e.Graphics.DrawString(
Text
, Font, foreBrush, rc);
System\Windows\Forms\Design\RichTextBoxDesigner.cs (2)
93
return Control.
Text
;
97
string oldText = Control.
Text
;
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
63
get => Control.
Text
;
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (2)
566
HwndSourceParameters HWSParam = new HwndSourceParameters(this.
Text
, cp.Width, cp.Height)
1006
OnPropertyChanged("Text", this.
Text
);