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