Base:
property
Text
System.Windows.Forms.Control.Text
1 override of Text
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
328
public override string
Text
232 writes to Text
Accessibility_Core_App (44)
CommonControl1.Designer.cs (12)
263
this.label7.
Text
= "CheckedListBox";
340
this.label11.
Text
= "SimpleStyle";
365
this.label10.
Text
= "DropDownStyle";
402
this.label8.
Text
= "ListView";
484
this.label6.
Text
= "Bottom";
495
this.label5.
Text
= "Left";
506
this.label4.
Text
= "Right";
517
this.label3.
Text
= "Up";
547
this.label2.
Text
= "AutoSizeFalse";
557
this.label1.
Text
= "AutoSizeTrue";
595
this.label12.
Text
= "listbox";
626
this.label9.
Text
= "MaskedTextBix";
CommonControl2.Designer.cs (8)
74
this.label3.
Text
= "PictureBox";
95
this.label4.
Text
= "ProgressBar01";
128
this.label5.
Text
= "RichTextBox";
148
this.label6.
Text
= "TextBox";
171
this.label7.
Text
= "TreeView";
208
this.label8.
Text
= "WebBrowser";
229
this.label1.
Text
= "MonthCalendar";
246
this.label2.
Text
= "numericUpdown";
ContainerControls.Designer.cs (8)
172
this.label2.
Text
= "Fixed3D_RightToLeft_AutoScroll:False";
182
this.label3.
Text
= "FlowLayoutPanel";
192
this.label4.
Text
= "GroupBox";
293
this.label6.
Text
= "Panel_FixedSingle_AutoScroll:True";
303
this.label7.
Text
= "Panel_Fixed3D_AutoScroll:False";
415
this.label10.
Text
= "Tab_Control";
570
this.label1.
Text
= "FixedSingle_LeftToRight_AutoScroll:True";
634
this.label5.
Text
= "Panel";
ContainerControls2.Designer.cs (8)
80
this.label8.
Text
= "SplitContainer_SetBackColor_Panel1_Silver_Panel2_Red";
133
this.label9.
Text
= "TableLayoutPanel_SetBackColor_Red";
266
this.label13.
Text
= "Empty_FlowLayout_SetBackColor_Green";
285
this.label14.
Text
= "Empty_GroupBox_SetBackColor_Green";
308
this.label15.
Text
= "Empty_Panel_SetBackColor_Green";
327
this.label16.
Text
= "Empty_SplitContainer_SetBackColor_Panel1_Green_Panel2_Red";
355
this.label17.
Text
= "Empty_TabControl_SetBackColor_TabPage7_Green_TabPage8_Red";
398
this.label18.
Text
= "Empty_TabLayout_SetBackColor_Green";
DataBindingExample.Designer.cs (4)
84
this.label1.
Text
= "StudentPhoneNum";
213
this.label2.
Text
= "TreeView";
233
this.label3.
Text
= "ListView";
256
this.label4.
Text
= "ListBox";
PrintingControls.Designer.cs (2)
78
this.label1.
Text
= "Please &input text you want to print";
141
this.label2.
Text
= "View your page:";
RemainingControls.Designer.cs (2)
85
this.label1.
Text
= "Setting for DomainUpDown:";
104
this.label2.
Text
= "Track:";
DesignSurface (3)
MainForm.cs (3)
162
l1.
Text
= "I'm the first Label";
163
l2.
Text
= "I'm the second Label";
195
l1.
Text
= "I'm a Label";
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
86
Label.
Text
= prompt
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
85
LabelInfo.
Text
= Value
PresentationUI (33)
MS\Internal\Documents\CredentialManagerDialog.cs (1)
158
_instructionLabel.
Text
= SR.RMCredManagementInstruction;
MS\Internal\Documents\RequestedSignatureDialog.cs (4)
127
_requestSignerNameLabel.
Text
= SR.RequestSignatureDialogRequestSignerNameLabel;
128
_intentLabel.
Text
= SR.RequestSignatureDialogIntentLabel;
129
_requestLocationLabel.
Text
= SR.RequestSignatureDialogLocationLabel;
130
_signatureAppliedByDateLabel.
Text
= SR.RequestSignatureDialogSignatureAppliedByDateLabel;
MS\Internal\Documents\RMEnrollmentPage1.cs (5)
49
_label1.
Text
= SR.RMEnrollmentPage1a;
50
_label2.
Text
= SR.RMEnrollmentPage1b;
51
_label3.
Text
= SR.RMEnrollmentPage1c;
52
_privacyLabel.
Text
= SR.RMEnrollmentPage1d;
53
_instructionlabel.
Text
= SR.RMEnrollmentPage1e;
MS\Internal\Documents\RMEnrollmentPage2.cs (2)
86
this._label1.
Text
= SR.RMEnrollmentPage2a;
87
this._label2.
Text
= SR.RMEnrollmentPage2b;
MS\Internal\Documents\RMEnrollmentPage3.cs (2)
39
this.label2.
Text
= SR.RMEnrollmentPage3b;
40
this.label3.
Text
= SR.RMEnrollmentPage3c;
MS\Internal\Documents\RMPermissions.cs (7)
30
authenticatedAsLabel.
Text
= userLicense.LicensedUser.Name;
31
expiresOnLabel.
Text
= GetUtcDateAsString(userLicense.ValidUntil);
185
permissionLabel.
Text
= permission;
218
authenticatedAsTextLabel.
Text
= SR.RMPermissionsAuthenticatedAs;
219
permissionsHeldLabel.
Text
= SR.RMPermissionsHavePermissions;
220
requestFromTextLabel.
Text
= SR.RMPermissionsRequestFrom;
222
expiresOnTextLabel.
Text
= SR.RMPermissionsExpiresOn;
MS\Internal\Documents\RMPublishingDialog.cs (1)
915
labelSelectTemplate.
Text
= SR.RMPublishingSelectTemplate;
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
235
nameHeader.
Text
= SR.DigSigSumColumnHeaderName;
244
intentHeader.
Text
= SR.DigSigSumColumnHeaderIntent;
253
locationHeader.
Text
= SR.DigSigSumColumnHeaderLocale;
262
signByHeader.
Text
= SR.DigSigSumColumnHeaderSignBy;
279
statusHeader.
Text
= SR.DigSigSumColumnHeaderSignatureStatus;
288
intentHeader.
Text
= SR.DigSigSumColumnHeaderIntent;
MS\Internal\Documents\SigningDialog.cs (4)
169
_signerlabel.
Text
= String.Format(CultureInfo.CurrentCulture,
235
_reasonLabel.
Text
= SR.SigningDialogReasonLabel;
236
_locationLabel.
Text
= SR.SigningDialogLocationLabel;
237
_actionlabel.
Text
= SR.SigningDialogActionlabel;
MS\Internal\Documents\SigningProgress.cs (1)
30
_label.
Text
= message;
System.Windows.Forms (8)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
331
set => base.
Text
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
39
set => _messageLabel.
Text
= value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (3)
112
_descriptionLabel.
Text
= _fullDescription;
193
_titleLabel.
Text
= title;
199
_descriptionLabel.
Text
= _fullDescription;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
267
_message.
Text
= messageText;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.BackgroundThread.cs (1)
90
_dialog!._messageLabel.
Text
= string.Format(
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
87
_messageLabel.
Text
= SR.PrintControllerWithStatusDialog_Canceling;
System.Windows.Forms.Design (40)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (5)
864
_propertiesLabel.
Text
= string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem?)_listBox.SelectedItem));
1061
_propertiesLabel.
Text
= string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem)_listBox.SelectedItem));
1065
_propertiesLabel.
Text
= SR.CollectionEditorPropertiesMultiSelect;
1075
_propertiesLabel.
Text
= SR.CollectionEditorInheritedReadOnlySelection;
1085
_propertiesLabel.
Text
= SR.CollectionEditorPropertiesNone;
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
114
_titleLabel.
Text
= _panelHeaderItem.DisplayName;
116
_subtitleLabel.
Text
= _panelHeaderItem.Subtitle;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
127
_label.
Text
= StripAmpersands(PropertyItem!.DisplayName);
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
67
_label.
Text
= StripAmpersands(_textItem.DisplayName);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (6)
887
_propertyGridLabel.
Text
= string.Format(SR.DataGridViewProperties);
929
_propertyGridLabel.
Text
= (SR.DataGridViewUnboundColumnProperties);
933
_propertyGridLabel.
Text
= (SR.DataGridViewBoundColumnProperties);
1075
_propertyGridLabel.
Text
= (SR.DataGridViewUnboundColumnProperties);
1079
_propertyGridLabel.
Text
= (SR.DataGridViewBoundColumnProperties);
1084
_propertyGridLabel.
Text
= (SR.DataGridViewProperties);
System\Windows\Forms\Design\DesignBindingPicker.cs (8)
1599
_helpTextCtrl.
Text
= mouseNodeErrorText;
1604
_helpTextCtrl.
Text
= mouseNodeHelpText;
1609
_helpTextCtrl.
Text
= string.Format(CultureInfo.CurrentCulture, (SR.DesignBindingPickerHelpGenCurrentBinding), _selectedNode.Text);
1614
_helpTextCtrl.
Text
= (_treeViewCtrl?.Nodes.Count > 1) ? (SR.DesignBindingPickerHelpGenPickMember) : "";
1619
_helpTextCtrl.
Text
= (SR.DesignBindingPickerHelpGenPickBindSrc);
1624
_helpTextCtrl.
Text
= (SR.DesignBindingPickerHelpGenPickDataSrc);
1629
_helpTextCtrl.
Text
= (SR.DesignBindingPickerHelpGenAddDataSrc);
1634
_helpTextCtrl.
Text
= "";
System\Windows\Forms\Design\FormatControl.cs (14)
94
sampleLabel.
Text
= customFormatType.SampleString;
103
sampleLabel.
Text
= item.SampleString;
112
sampleLabel.
Text
= item.SampleString;
125
sampleLabel.
Text
= item.SampleString;
126
explanationLabel.
Text
= item.TopLabelString;
247
secondRowLabel.
Text
= string.Empty;
252
secondRowLabel.
Text
= SR.BindingFormattingDialogDecimalPlaces;
263
secondRowLabel.
Text
= SR.BindingFormattingDialogCustomFormat;
284
secondRowLabel.
Text
= SR.BindingFormattingDialogType;
372
nullValueLabel.
Text
= SR.BindingFormattingDialogNullValue;
376
secondRowLabel.
Text
= SR.BindingFormattingDialogDecimalPlaces;
380
secondRowLabel.
Text
= SR.BindingFormattingDialogCustomFormat;
408
sampleLabel.
Text
= item.SampleString;
410
explanationLabel.
Text
= item.TopLabelString;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (3)
451
_label2.
Text
= string.Format(SR.CollectionEditorProperties, _treeView1.SelectedNode.Text);
488
_label2.
Text
= string.Format(SR.CollectionEditorProperties, node.Name.ToString());
494
_label2.
Text
= string.Format(SR.CollectionEditorPropertiesNone);
System.Windows.Forms.Tests (23)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (4)
652
Text
= "Text"
756
Text
= "Text"
777
Text
= "Text"
798
Text
= "Text"
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (7)
421
Text
= labelText
446
Text
= labelText
471
Text
= "LabelText"
661
Text
= labelText
687
Text
= labelText
713
Text
= "LabelText"
1676
label.
Text
= "&label";
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
359
label1.
Text
= "&Date";
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (8)
19
Text
= "Some test label text",
36
label.
Text
= "Some test label text";
50
label.
Text
= "Some test label text";
76
label.
Text
= "Some test label text";
132
Text
= "Text"
140
control.
Text
= newText;
150
using Label label = new() {
Text
= text, UseMnemonic = useMnemonic };
175
using Label label = new() {
Text
= labelText, UseMnemonic = useMnemonic };
System\Windows\Forms\LabelTests.cs (3)
293
Text
= "Hello",
298
label.
Text
= "Say Hello";
871
Text
= "Some text"
System.Windows.Forms.UI.IntegrationTests (7)
DragDropTests.cs (7)
691
_dropLocationLabel.
Text
= "None";
820
_dropLocationLabel.
Text
= "None - no string data.";
872
_dropLocationLabel.
Text
= $"Drops before item #{(_indexOfItemUnderMouseToDrop + 1)}";
876
_dropLocationLabel.
Text
= "Drops at the end.";
901
_dropLocationLabel.
Text
= "None";
932
_dropLocationLabel.
Text
= "None";
943
_dropLocationLabel.
Text
= "None";
WinFormsControlsTest (72)
Calendar.Designer.cs (6)
97
this.label1.
Text
= "Set MinDate:";
107
this.label2.
Text
= "Set MaxDate:";
136
this.label3.
Text
= "Set FirstDayOfWeek:";
164
this.label4.
Text
= "Change the form size to change the calendar size";
220
this.label5.
Text
= "Additional settings:";
228
this.currentDPILabel1.
Text
= "currentDPILabel1";
CollectionEditors.cs (1)
40
label1.
Text
= sender.GetType().FullName;
CollectionEditors.Designer.cs (1)
95
this.label1.
Text
= "label1";
ComboBoxes.cs (1)
23
label1.
Text
= comboBox1.Text;
ComboBoxes.Designer.cs (3)
244
this.currentDPILabel1.
Text
= "Current scaling is 100%";
253
this.label1.
Text
= "label1";
262
this.dataBoundLabel.
Text
= "data-bound";
ComboBoxesWithScrollBars.Designer.cs (3)
130
this.label1.
Text
= "Change \r\nDropDownHeight";
155
this.label2.
Text
= "Change \r\nComboBox Height";
178
this.label3.
Text
= "Change \r\nDropDownHeight";
CurrentDPILabel.cs (1)
34
Text
= $"Current scaling is {(int)Math.Round((DeviceDpi / 96.0) * 100)}%";
DataGridViewTest.cs (2)
46
currentDPILabel1.
Text
= DeviceDpi.ToString();
51
currentDPILabel1.
Text
= DeviceDpi.ToString();
DataGridViewTest.Designer.cs (2)
142
this.currentDPILabel1.
Text
= "Current scaling is 100%";
190
this.label1.
Text
= "Form font";
DesignTimeAligned.Designer.cs (3)
49
this.label1.
Text
= "LL";
60
this.label2.
Text
= "LL";
90
this.currentDPILabel1.
Text
= "currentDPILabel1";
ErrorProviderTest.Designer.cs (4)
64
this.label1.
Text
= "ErrorProvider with standard icon";
73
this.label1_2.
Text
= "Type from 5 to 10 characters";
94
this.label2.
Text
= "ErrorProvider with multi-resolution icon";
103
this.label2_1.
Text
= "Type from 5 to 20 characters";
FormBorderStyles.cs (1)
17
lblFormBorderStyle.
Text
= $"Current border style: {FormBorderStyle}";
FormOwnerTestForm.cs (1)
48
Text
= $"Memory Usage:\nBefore: {memoryStart:N0} bytes\nDuring: {memoryBeforeGC:N0} bytes\nAfter: {memoryAfterGC:N0} bytes",
ListBoxes.Designer.cs (4)
60
this.label1.
Text
= "ListBox with DrawMode.Normal";
95
this.label2.
Text
= "CheckedListBox";
129
this.label3.
Text
= "ListBox DrawMode.OwnerDrawFixed";
165
this.label4.
Text
= "ListBox DrawMode.OwnerDrawVariable";
MenuStripAndCheckedListBox.cs (2)
18
currentDpiLabel.
Text
= $"Current scaling = {(int)Math.Round((DeviceDpi / 96.0) * 100)}%";
23
currentDpiLabel.
Text
= $"Current scaling = {(int)Math.Round((DeviceDpi / 96.0) * 100)}%";
MenuStripAndCheckedListBox.Designer.cs (1)
279
this.currentDpiLabel.
Text
= "current DPI: ";
MultipleControls.Designer.cs (1)
97
this.label1.
Text
= "label1";
Password.Designer.cs (11)
81
label1.
Text
= "UseSystemPasswordChar = true";
90
label2.
Text
= "PasswordChar = '*'";
161
label3.
Text
= "TextBoxes";
170
label4.
Text
= "MaskedTextBoxes";
179
label5.
Text
= "Multiline TextBoxes";
188
label6.
Text
= "PasswordChar = '*'";
197
label7.
Text
= "UseSystemPasswordChar = true";
206
label8.
Text
= "PasswordChar = '#'";
215
label9.
Text
= "UseSystemPasswordChar = true";
224
label10.
Text
= "Hide/Show Password";
233
label11.
Text
= "PasswordChar ='*' with input Mask";
RichTextBoxes.cs (1)
128
Label textLabel = new() { Left = 50, Top = 20,
Text
= text };
ScrollableControls.Designer.cs (7)
154
label1.
Text
= "FlowLayoutPanel";
212
label2.
Text
= "Panel";
308
label3.
Text
= "SplitContainer";
358
label4.
Text
= "TabControl";
367
label5.
Text
= "TextBox";
413
label6.
Text
= "Treeview ";
422
label7.
Text
= "ListBox";
ScrollBars.cs (2)
37
lblHValue.
Text
= $"Value: {hScrollBar.Value}";
38
lblVValue.
Text
= $"Value: {vScrollBar.Value}";
ScrollBars.Designer.cs (4)
104
this.lblMinimum.
Text
= "Minimum";
113
this.lblMaximum.
Text
= "Maximum";
122
this.lblHValue.
Text
= "label3";
131
this.lblVValue.
Text
= "label4";
ToolStripSeparatorPreferredSize.cs (1)
26
_label1.
Text
= $"Layout: {_toolStrip1.LayoutStyle}, Size: {_toolStripSeparator1.Size}, GetPreferredSize: {_toolStripSeparator1.GetPreferredSize(_toolStripSeparator1.Size)}";
ToolStripTests.Designer.cs (1)
395
this.label1.
Text
= "Test ToolStrips";
TrackBars.cs (3)
27
lblTrackBarSize.
Text
= $"Trackbar width: {trackBar1.Width}";
31
lblTrackBarSize.
Text
= $"Trackbar height: {trackBar1.Height}";
37
lblTrackBarValue.
Text
= $"Value {trackBar1.Value}";
TrackBars.Designer.cs (5)
207
this.lblMinimum.
Text
= "Minimum";
216
this.lblMaximum.
Text
= "Maximum";
225
this.lblTickFrequency.
Text
= "Tick Frequency";
234
this.lblTrackBarSize.
Text
= "Size: 0";
243
this.lblTrackBarValue.
Text
= "Value: 0";
33 references to Text
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
82
Return LabelInfo.
Text
System.Windows.Forms (21)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
362
string text = previousLabel.
Text
;
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (1)
36
mnemonic = WindowsFormsUtils.GetMnemonic(previousLabel.
Text
, convertToUpperCase: false);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
28
char previousLabelMnemonic = WindowsFormsUtils.GetMnemonic(previousLabel.
Text
, convertToUpperCase: false);
System\Windows\Forms\Controls\Labels\Label.cs (14)
21
[DefaultProperty(nameof(
Text
))]
22
[DefaultBindingProperty(nameof(
Text
))]
929
if (!MeasureTextCache.TextRequiresWordBreak(
Text
, Font, constrainingSize, flags))
1062
if (string.IsNullOrEmpty(
Text
))
1075
requiredSize = MeasureTextCache.GetTextSize(
Text
, Font, proposedConstraints, format);
1086
requiredSize = Size.Ceiling(screen.Graphics.MeasureString(
Text
, Font, bounds, stringFormat));
1155
_textToolTip.Show(WindowsFormsUtils.TextWithoutMnemonics(
Text
), this);
1231
using var textVariant = (VARIANT)
Text
;
1286
e.GraphicsInternal.DrawString(
Text
, Font, brush, face, stringFormat);
1290
ControlPaint.DrawStringDisabled(e.GraphicsInternal,
Text
, Font, color, face, stringFormat);
1299
TextRenderer.DrawTextInternal(e,
Text
, Font, face, color, flags: flags);
1307
TextRenderer.DrawTextInternal(e,
Text
, Font, face, disabledTextForeColor, flags: flags);
1362
if (UseMnemonic && IsMnemonic(charCode,
Text
) && CanProcessMnemonic())
1425
public override string ToString() => $"{base.ToString()}, Text: {
Text
}";
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
330
get => base.
Text
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
90
SizeF sizef = PropertyGrid.MeasureTextHelper.MeasureText(OwnerPropertyGrid, g, _titleLabel.
Text
, Font, width);
191
if (_descriptionLabel.
Text
!= title)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
197
|| (hostedControl is Label label && string.IsNullOrEmpty(label.
Text
));
System.Windows.Forms.Design (10)
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
118
_subtitleLabel.Visible = (_subtitleLabel.
Text
.Length != 0);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (2)
78
if (string.IsNullOrEmpty(_label.
Text
))
298
if (!string.IsNullOrEmpty(_label.
Text
))
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1865
TextRenderer.DrawText(e.Graphics,
Text
, Font, rect, ForeColor, formatFlags);
System\Windows\Forms\Design\FormatControl.cs (6)
163
if (IsMnemonic(charCode, formatTypeLabel.
Text
))
169
if (IsMnemonic(charCode, nullValueLabel.
Text
))
186
if (IsMnemonic(charCode, secondRowLabel.
Text
))
198
if (IsMnemonic(charCode, secondRowLabel.
Text
))
210
if (IsMnemonic(charCode, secondRowLabel.
Text
))
301
secondRowLabel.Visible = secondRowLabel.
Text
.Length > 0;
System.Windows.Forms.Tests (1)
System\Windows\Forms\LabelTests.cs (1)
104
Assert.Empty(control.
Text
);