Base:
property
Text
System.Windows.Forms.Control.Text
1 override of Text
System.Windows.Forms (1)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
336public override string Text
53 writes to Text
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
86Label.Text = prompt
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
85LabelInfo.Text = Value
System.Windows.Forms (8)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
339set => 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)
114_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 (43)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (5)
878_propertiesLabel.Text = string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem?)_listBox.SelectedItem)); 1069_propertiesLabel.Text = string.Format(SR.CollectionEditorProperties, GetDisplayText((ListItem)_listBox.SelectedItem)); 1073_propertiesLabel.Text = SR.CollectionEditorPropertiesMultiSelect; 1083_propertiesLabel.Text = SR.CollectionEditorInheritedReadOnlySelection; 1093_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)
884_propertyGridLabel.Text = string.Format(SR.DataGridViewProperties); 926_propertyGridLabel.Text = (SR.DataGridViewUnboundColumnProperties); 930_propertyGridLabel.Text = (SR.DataGridViewBoundColumnProperties); 1072_propertyGridLabel.Text = (SR.DataGridViewUnboundColumnProperties); 1076_propertyGridLabel.Text = (SR.DataGridViewBoundColumnProperties); 1081_propertyGridLabel.Text = (SR.DataGridViewProperties);
System\Windows\Forms\Design\DesignBindingPicker.cs (8)
1593_helpTextCtrl.Text = mouseNodeErrorText; 1598_helpTextCtrl.Text = mouseNodeHelpText; 1603_helpTextCtrl.Text = string.Format(CultureInfo.CurrentCulture, (SR.DesignBindingPickerHelpGenCurrentBinding), _selectedNode.Text); 1608_helpTextCtrl.Text = (_treeViewCtrl?.Nodes.Count > 1) ? (SR.DesignBindingPickerHelpGenPickMember) : ""; 1613_helpTextCtrl.Text = (SR.DesignBindingPickerHelpGenPickBindSrc); 1618_helpTextCtrl.Text = (SR.DesignBindingPickerHelpGenPickDataSrc); 1623_helpTextCtrl.Text = (SR.DesignBindingPickerHelpGenAddDataSrc); 1628_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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (3)
888label?.Text = className + itemName; 909label?.Text = SR.ToolStripItemCollectionEditorLabelNone; 916label?.Text = SR.ToolStripItemCollectionEditorLabelMultipleItems;
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);
32 references to Text
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
82Return LabelInfo.Text
System.Windows.Forms (21)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
361string 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))] 927if (!MeasureTextCache.TextRequiresWordBreak(Text, Font, constrainingSize, flags)) 1060if (string.IsNullOrEmpty(Text)) 1073requiredSize = MeasureTextCache.GetTextSize(Text, Font, proposedConstraints, format); 1084requiredSize = Size.Ceiling(screen.Graphics.MeasureString(Text, Font, bounds, stringFormat)); 1153_textToolTip.Show(WindowsFormsUtils.TextWithoutMnemonics(Text), this); 1229using var textVariant = (VARIANT)Text; 1284e.GraphicsInternal.DrawString(Text, Font, brush, face, stringFormat); 1288ControlPaint.DrawStringDisabled(e.GraphicsInternal, Text, Font, color, face, stringFormat); 1297TextRenderer.DrawTextInternal(e, Text, Font, face, color, flags: flags); 1305TextRenderer.DrawTextInternal(e, Text, Font, face, disabledTextForeColor, flags: flags); 1360if (UseMnemonic && IsMnemonic(charCode, Text) && CanProcessMnemonic()) 1423public override string ToString() => $"{base.ToString()}, Text: {Text}";
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
338get => base.Text;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
92SizeF sizef = PropertyGrid.MeasureTextHelper.MeasureText(OwnerPropertyGrid, g, _titleLabel.Text, Font, width); 191if (_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)
78if (string.IsNullOrEmpty(_label.Text)) 298if (!string.IsNullOrEmpty(_label.Text))
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1859TextRenderer.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;