7 types derived from Label
System.Windows.Forms (2)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
20public partial class LinkLabel : Label, IButtonControl
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabel.cs (1)
8internal class StickyLabel : Label
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
320private sealed class EditorLabel : Label
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1853internal class HelpTextLabel : Label
System.Windows.Forms.Tests (2)
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (1)
183private class LabelWithCustomAccessibleObject : Label
System\Windows\Forms\LabelTests.cs (1)
879public class SubLabel : Label
WinFormsControlsTest (1)
CurrentDPILabel.cs (1)
7public class CurrentDPILabel : Label
254 instantiations of Label
Accessibility_Core_App (44)
CommonControl1.Designer.cs (12)
48this.label7 = new System.Windows.Forms.Label(); 54this.label11 = new System.Windows.Forms.Label(); 56this.label10 = new System.Windows.Forms.Label(); 59this.label8 = new System.Windows.Forms.Label(); 65this.label6 = new System.Windows.Forms.Label(); 66this.label5 = new System.Windows.Forms.Label(); 67this.label4 = new System.Windows.Forms.Label(); 68this.label3 = new System.Windows.Forms.Label(); 71this.label2 = new System.Windows.Forms.Label(); 72this.label1 = new System.Windows.Forms.Label(); 75this.label12 = new System.Windows.Forms.Label(); 78this.label9 = new System.Windows.Forms.Label();
CommonControl2.Designer.cs (8)
45this.label3 = new System.Windows.Forms.Label(); 47this.label4 = new System.Windows.Forms.Label(); 50this.label5 = new System.Windows.Forms.Label(); 52this.label6 = new System.Windows.Forms.Label(); 54this.label7 = new System.Windows.Forms.Label(); 56this.label8 = new System.Windows.Forms.Label(); 58this.label1 = new System.Windows.Forms.Label(); 60this.label2 = new System.Windows.Forms.Label();
ContainerControls.Designer.cs (8)
35this.label2 = new System.Windows.Forms.Label(); 36this.label3 = new System.Windows.Forms.Label(); 37this.label4 = new System.Windows.Forms.Label(); 46this.label6 = new System.Windows.Forms.Label(); 47this.label7 = new System.Windows.Forms.Label(); 58this.label10 = new System.Windows.Forms.Label(); 72this.label1 = new System.Windows.Forms.Label(); 78this.label5 = new System.Windows.Forms.Label();
ContainerControls2.Designer.cs (8)
33this.label8 = new System.Windows.Forms.Label(); 37this.label9 = new System.Windows.Forms.Label(); 49this.label13 = new System.Windows.Forms.Label(); 51this.label14 = new System.Windows.Forms.Label(); 53this.label15 = new System.Windows.Forms.Label(); 55this.label16 = new System.Windows.Forms.Label(); 57this.label17 = new System.Windows.Forms.Label(); 61this.label18 = new System.Windows.Forms.Label();
DataBindingExample.Designer.cs (4)
31this.label1 = new System.Windows.Forms.Label(); 41this.label2 = new System.Windows.Forms.Label(); 43this.label3 = new System.Windows.Forms.Label(); 45this.label4 = new System.Windows.Forms.Label();
PrintingControls.Designer.cs (2)
36this.label1 = new System.Windows.Forms.Label(); 42this.label2 = new System.Windows.Forms.Label();
RemainingControls.Designer.cs (2)
36this.label1 = new System.Windows.Forms.Label(); 38this.label2 = new System.Windows.Forms.Label();
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
40Label = New Label
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
123LabelInfo = New Label
PresentationUI (53)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (20)
44this._titleLabel = new System.Windows.Forms.Label(); 46this._versionLabel = new System.Windows.Forms.Label(); 47this._authorLabel = new System.Windows.Forms.Label(); 48this._statusLabel = new System.Windows.Forms.Label(); 49this._contentLabel = new System.Windows.Forms.Label(); 50this._languageLabel = new System.Windows.Forms.Label(); 51this._subjectLabel = new System.Windows.Forms.Label(); 53this._categoryLabel = new System.Windows.Forms.Label(); 57this._keywordsLabel = new System.Windows.Forms.Label(); 62this._identifierLabel = new System.Windows.Forms.Label(); 63this._descriptionLabel = new System.Windows.Forms.Label(); 71this._sizeLabel = new System.Windows.Forms.Label(); 78this._documentPrintedLabel = new System.Windows.Forms.Label(); 79this._documentModifiedLabel = new System.Windows.Forms.Label(); 80this._documentCreatedLabel = new System.Windows.Forms.Label(); 81this._revisionLabel = new System.Windows.Forms.Label(); 82this._lastSavedLabel = new System.Windows.Forms.Label(); 88this._fileCreatedLabel = new System.Windows.Forms.Label(); 89this._fileModifiedLabel = new System.Windows.Forms.Label(); 91this._fileAccessedLabel = new System.Windows.Forms.Label();
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
47this._instructionLabel = new System.Windows.Forms.Label();
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (4)
42_signatureAppliedByDateLabel = new System.Windows.Forms.Label(); 43_requestSignerNameLabel = new System.Windows.Forms.Label(); 44_requestLocationLabel = new System.Windows.Forms.Label(); 46_intentLabel = new System.Windows.Forms.Label();
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (5)
40_label1 = new System.Windows.Forms.Label(); 43_label2 = new System.Windows.Forms.Label(); 44_label3 = new System.Windows.Forms.Label(); 45_privacyLabel = new System.Windows.Forms.Label(); 46_instructionlabel = new System.Windows.Forms.Label();
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
42this._label1 = new System.Windows.Forms.Label(); 45this._label2 = new System.Windows.Forms.Label();
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (2)
37this.label2 = new System.Windows.Forms.Label(); 39this.label3 = new System.Windows.Forms.Label();
MS\Internal\Documents\RMPermissions.cs (1)
189Label permissionLabel = new Label();
MS\Internal\Documents\RMPermissions.Designer.cs (6)
37this.authenticatedAsTextLabel = new System.Windows.Forms.Label(); 38this.authenticatedAsLabel = new System.Windows.Forms.Label(); 40this.permissionsHeldLabel = new System.Windows.Forms.Label(); 42this.requestFromTextLabel = new System.Windows.Forms.Label(); 45this.expiresOnTextLabel = new System.Windows.Forms.Label(); 46this.expiresOnLabel = new System.Windows.Forms.Label();
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
44this.labelSelectTemplate = new System.Windows.Forms.Label();
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
236Label nameHeader = new Label(); 245Label intentHeader = new Label(); 254Label locationHeader = new Label(); 263Label signByHeader = new Label(); 280Label statusHeader = new Label(); 289Label intentHeader = new Label();
MS\Internal\Documents\SigningDialog.Designer.cs (4)
38_signerlabel = new System.Windows.Forms.Label(); 40_reasonLabel = new System.Windows.Forms.Label(); 42_actionlabel = new System.Windows.Forms.Label(); 43_locationLabel = new System.Windows.Forms.Label();
MS\Internal\Documents\SigningProgress.Designer.cs (1)
35_label = new System.Windows.Forms.Label();
System.Windows.Forms (5)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
124_messageLabel = new()
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
37_titleLabel = new() 43_descriptionLabel = new()
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
192Label grayStrip = new Label
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
60private readonly Label _message = new();
System.Windows.Forms.Design (39)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
407_membersLabel = new Label(); 411_propertiesLabel = new Label();
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
23_titleLabel = new Label 31_subtitleLabel = new Label
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
24_label = new Label
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
20_label = new Label
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
86_splitterLabel = new Label();
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (4)
270_columnInDataSourceLabel = new Label(); 273_nameLabel = new Label(); 275_typeLabel = new Label(); 277_headerTextLabel = new Label();
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (3)
119_normalLabel = new Label(); 121_selectedLabel = new Label(); 123_label1 = new Label();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
479_selectedColumnsLabel = new Label(); 480_propertyGridLabel = new Label();
System\Windows\Forms\Design\DesignBindingPicker.cs (4)
140Label addNewDiv = new() 180Label helpTextDiv = new() 267Label addNewDiv = new() 312Label helpTextDiv = new()
System\Windows\Forms\Design\FormatControl.Designer.cs (6)
36explanationLabel = new System.Windows.Forms.Label(); 39sampleLabel = new System.Windows.Forms.Label(); 41secondRowLabel = new System.Windows.Forms.Label(); 42nullValueLabel = new System.Windows.Forms.Label(); 45thirdRowLabel = new System.Windows.Forms.Label(); 47formatTypeLabel = new System.Windows.Forms.Label();
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (2)
16private Label _caption = new(); 52_caption = new Label();
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
123_lblHeader = new Label(); 132_lblMask = new Label(); 134_lblTryIt = new Label();
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (2)
121_modifiersLabel = new Label(); 126_keyLabel = new Label();
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
77_instruction = new Label();
System\Windows\Forms\Design\StyleEditorForm.cs (3)
163_memberTypeLabel = new Label(); 178_pixelsLabel = new Label(); 179_percentLabel = new Label();
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
220_label2 = new Label(); 222_label1 = new Label();
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\LabelDesignerTests.cs (2)
20using Label label = new(); 30using Label label = new();
System.Windows.Forms.Tests (52)
SerializableTypesTests.cs (1)
288Label label20_21 = new() { Name = "label20_21" };
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (4)
650using Label control = new() 754using Label control = new() 775using Label control = new() 796using Label control = new()
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (8)
418using Label previousLabel = new() 443using Label previousLabel = new() 468using Label previousLabel = new() 658using Label previousLabel = new() 684using Label previousLabel = new() 710using Label previousLabel = new() 1226using Label control = new(); 1675using Label label = new();
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
352using Label label1 = new();
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (9)
17using Label label = new() 34using Label label = new(); 48using Label label = new(); 61using Label label = new(); 74using Label label = new(); 87using Label label = new(); 115using Label label = new(); 150using Label label = new() { Text = text, UseMnemonic = useMnemonic }; 175using Label label = new() { Text = labelText, UseMnemonic = useMnemonic };
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
891Label emptyLabel = new();
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
314return new ToolStripControlHost(new Label());
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
175{ new Label(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\LabelTests.cs (26)
218using Label label = new(); 225using Label label = new(); 245using Label control = new(); 264using Label control = new() 289using Label label = new() 318using Label control = new() 356using Label label = new(); 392using Label label = new(); 402using Label label = new(); 415using Label label = new(); 428using Label label = new(); 462using Label label = new(); 500using Label label = new(); 525using Label label = new(); 560using Label label = new(); 579using Label label = new(); 620using Label label = new(); 654using Label label = new(); 681using Label label = new(); 695using Label label = new(); 726using Label label = new(); 734using Label label = new(); 807using Label label = new(); 828using Label label = new(); 849using Label label = new(); 868using Label label = new()
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
601_dropLocationLabel = new Label();
WinFormsControlsTest (56)
Calendar.Designer.cs (5)
37this.label1 = new System.Windows.Forms.Label(); 38this.label2 = new System.Windows.Forms.Label(); 41this.label3 = new System.Windows.Forms.Label(); 43this.label4 = new System.Windows.Forms.Label(); 48this.label5 = new System.Windows.Forms.Label();
CollectionEditors.Designer.cs (1)
39this.label1 = new System.Windows.Forms.Label();
ComboBoxes.Designer.cs (2)
48this.label1 = new System.Windows.Forms.Label(); 49this.dataBoundLabel = new System.Windows.Forms.Label();
ComboBoxesWithScrollBars.Designer.cs (3)
39this.label1 = new System.Windows.Forms.Label(); 41this.label2 = new System.Windows.Forms.Label(); 43this.label3 = new System.Windows.Forms.Label();
DataGridViewTest.Designer.cs (1)
48this.label1 = new System.Windows.Forms.Label();
DesignTimeAligned.Designer.cs (2)
34this.label1 = new System.Windows.Forms.Label(); 35this.label2 = new System.Windows.Forms.Label();
ErrorProviderTest.Designer.cs (4)
39this.label1_2 = new System.Windows.Forms.Label(); 40this.label1 = new System.Windows.Forms.Label(); 44this.label2_1 = new System.Windows.Forms.Label(); 45this.label2 = new System.Windows.Forms.Label();
FormBorderStyles.Designer.cs (1)
32this.lblFormBorderStyle = new System.Windows.Forms.Label();
FormOwnerTestForm.cs (1)
46Controls.Add(new Label()
ListBoxes.Designer.cs (4)
34this.label1 = new System.Windows.Forms.Label(); 39this.label2 = new System.Windows.Forms.Label(); 44this.label3 = new System.Windows.Forms.Label(); 49this.label4 = new System.Windows.Forms.Label();
MenuStripAndCheckedListBox.Designer.cs (1)
59this.currentDpiLabel = new System.Windows.Forms.Label();
MultipleControls.Designer.cs (1)
37this.label1 = new System.Windows.Forms.Label();
Password.Designer.cs (11)
38label1 = new Label(); 39label2 = new Label(); 47label3 = new Label(); 48label4 = new Label(); 49label5 = new Label(); 50label6 = new Label(); 51label7 = new Label(); 52label8 = new Label(); 53label9 = new Label(); 54label10 = new Label(); 55label11 = new Label();
RichTextBoxes.cs (1)
128Label textLabel = new() { Left = 50, Top = 20, Text = text };
ScrollableControls.Designer.cs (7)
51label1 = new Label(); 57label2 = new Label(); 66label3 = new Label(); 71label4 = new Label(); 72label5 = new Label(); 75label6 = new Label(); 76label7 = new Label();
ScrollBars.Designer.cs (4)
41this.lblMinimum = new System.Windows.Forms.Label(); 42this.lblMaximum = new System.Windows.Forms.Label(); 43this.lblHValue = new System.Windows.Forms.Label(); 44this.lblVValue = new System.Windows.Forms.Label();
ToolStripSeparatorPreferredSize.cs (1)
36_label1 = new Label();
ToolStripTests.Designer.cs (1)
36this.label1 = new System.Windows.Forms.Label();
TrackBars.Designer.cs (5)
44this.lblMinimum = new System.Windows.Forms.Label(); 45this.lblMaximum = new System.Windows.Forms.Label(); 46this.lblTickFrequency = new System.Windows.Forms.Label(); 47this.lblTrackBarSize = new System.Windows.Forms.Label(); 48this.lblTrackBarValue = new System.Windows.Forms.Label();
296 references to Label
Accessibility_Core_App (44)
CommonControl1.Designer.cs (12)
737private System.Windows.Forms.Label label2; 738private System.Windows.Forms.Label label1; 743private System.Windows.Forms.Label label6; 744private System.Windows.Forms.Label label5; 745private System.Windows.Forms.Label label4; 746private System.Windows.Forms.Label label3; 754private System.Windows.Forms.Label label7; 756private System.Windows.Forms.Label label8; 758private System.Windows.Forms.Label label9; 760private System.Windows.Forms.Label label10; 762private System.Windows.Forms.Label label11; 764private System.Windows.Forms.Label label12;
CommonControl2.Designer.cs (8)
291private System.Windows.Forms.Label label3; 293private System.Windows.Forms.Label label4; 296private System.Windows.Forms.Label label5; 298private System.Windows.Forms.Label label6; 300private System.Windows.Forms.Label label7; 302private System.Windows.Forms.Label label8; 304private System.Windows.Forms.Label label1; 306private System.Windows.Forms.Label label2;
ContainerControls.Designer.cs (8)
860private System.Windows.Forms.Label label2; 861private System.Windows.Forms.Label label3; 862private System.Windows.Forms.Label label4; 871private System.Windows.Forms.Label label6; 872private System.Windows.Forms.Label label7; 883private System.Windows.Forms.Label label10; 896private System.Windows.Forms.Label label1; 902private System.Windows.Forms.Label label5;
ContainerControls2.Designer.cs (8)
455private System.Windows.Forms.Label label8; 459private System.Windows.Forms.Label label9; 471private System.Windows.Forms.Label label13; 473private System.Windows.Forms.Label label14; 475private System.Windows.Forms.Label label15; 477private System.Windows.Forms.Label label16; 479private System.Windows.Forms.Label label17; 483private System.Windows.Forms.Label label18;
DataBindingExample.Designer.cs (4)
295private System.Windows.Forms.Label label1; 305private System.Windows.Forms.Label label2; 307private System.Windows.Forms.Label label3; 309private System.Windows.Forms.Label label4;
PrintingControls.Designer.cs (2)
184private System.Windows.Forms.Label label1; 190private System.Windows.Forms.Label label2;
RemainingControls.Designer.cs (2)
142private System.Windows.Forms.Label label1; 144private System.Windows.Forms.Label label2;
DesignSurface (6)
MainForm.cs (6)
160Label l1 = surface.CreateControl<Label>(new Size(100, 25), new Point(12, 12)); 161Label l2 = surface.CreateControl<Label>(new Size(120, 25), new Point(12, 12)); 191Label l1 = surface.CreateControl<Label>(new Size(200, 100), new Point(10, 100));
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
16Private Label As Label
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
19Friend WithEvents LabelInfo As Label
PresentationUI (55)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (20)
778private System.Windows.Forms.Label _contentLabel; 779private System.Windows.Forms.Label _fileCreatedLabel; 781private System.Windows.Forms.Label _sizeLabel; 785private System.Windows.Forms.Label _fileModifiedLabel; 786private System.Windows.Forms.Label _fileAccessedLabel; 789private System.Windows.Forms.Label _revisionLabel; 790private System.Windows.Forms.Label _documentCreatedLabel; 791private System.Windows.Forms.Label _documentModifiedLabel; 792private System.Windows.Forms.Label _lastSavedLabel; 793private System.Windows.Forms.Label _documentPrintedLabel; 795private System.Windows.Forms.Label _statusLabel; 798private System.Windows.Forms.Label _identifierLabel; 800private System.Windows.Forms.Label _categoryLabel; 802private System.Windows.Forms.Label _versionLabel; 807private System.Windows.Forms.Label _titleLabel; 809private System.Windows.Forms.Label _authorLabel; 811private System.Windows.Forms.Label _subjectLabel; 813private System.Windows.Forms.Label _descriptionLabel; 815private System.Windows.Forms.Label _keywordsLabel; 816private System.Windows.Forms.Label _languageLabel;
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
194private System.Windows.Forms.Label _instructionLabel;
MS\Internal\Documents\DialogBaseForm.cs (2)
107if (c is Label) 109(c as Label).UseCompatibleTextRendering = false;
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (4)
244private System.Windows.Forms.Label _requestSignerNameLabel; 245private System.Windows.Forms.Label _signatureAppliedByDateLabel; 247private System.Windows.Forms.Label _intentLabel; 251private System.Windows.Forms.Label _requestLocationLabel;
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (5)
238private System.Windows.Forms.Label _label1; 241private System.Windows.Forms.Label _label2; 242private System.Windows.Forms.Label _label3; 245private System.Windows.Forms.Label _privacyLabel; 246private System.Windows.Forms.Label _instructionlabel;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
242private System.Windows.Forms.Label _label1; 245private System.Windows.Forms.Label _label2;
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (2)
146private System.Windows.Forms.Label label2; 148private System.Windows.Forms.Label label3;
MS\Internal\Documents\RMPermissions.cs (1)
189Label permissionLabel = new Label();
MS\Internal\Documents\RMPermissions.Designer.cs (6)
214private System.Windows.Forms.Label authenticatedAsTextLabel; 215private System.Windows.Forms.Label authenticatedAsLabel; 217private System.Windows.Forms.Label permissionsHeldLabel; 219private System.Windows.Forms.Label requestFromTextLabel; 222private System.Windows.Forms.Label expiresOnTextLabel; 223private System.Windows.Forms.Label expiresOnLabel;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
409private System.Windows.Forms.Label labelSelectTemplate;
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
236Label nameHeader = new Label(); 245Label intentHeader = new Label(); 254Label locationHeader = new Label(); 263Label signByHeader = new Label(); 280Label statusHeader = new Label(); 289Label intentHeader = new Label();
MS\Internal\Documents\SigningDialog.Designer.cs (4)
288private System.Windows.Forms.Label _reasonLabel; 289private System.Windows.Forms.Label _signerlabel; 290private System.Windows.Forms.Label _actionlabel; 292private System.Windows.Forms.Label _locationLabel;
MS\Internal\Documents\SigningProgress.Designer.cs (1)
74private System.Windows.Forms.Label _label;
System.Windows.Forms (30)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (3)
359Label? previousLabel = PreviousLabel; 389internal Label? PreviousLabel 411if (previous is Label label)
System\Windows\Forms\Control.cs (1)
3378/// Exposed publicly only by controls that support GDI text rendering (<see cref="Label"/>, <see cref="LinkLabel"/>
System\Windows\Forms\Controls\Buttons\ButtonBase.ButtonBaseAccessibleObject.cs (1)
30internal static string? GetKeyboardShortcut(Control control, bool useMnemonic, Label? previousLabel)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
24Label? previousLabel = PreviousLabel;
System\Windows\Forms\Controls\Labels\Label.cs (9)
61/// Initializes a new instance of the <see cref="Label"/> class. 363/// Gets or sets the image that is displayed on a <see cref="Label"/>. 406/// Gets or sets the index value of the images displayed on the <see cref="Label"/>. 455/// from the image list to display on the <see cref="Label"/>. 499/// Gets or sets the images displayed in a <see cref="Label"/>. 544/// Gets or sets the alignment of the image on the <see cref="Label"/>. 656/// the container control background is rendered on the <see cref="Label"/>. 668/// Gets or sets a value indicating whether the user can tab to the <see cref="Label"/>. 968if (GetType() == typeof(Label))
System\Windows\Forms\Controls\Labels\Label.LabelAccessibleObject.cs (3)
10public LabelAccessibleObject(Label owner) : base(owner) 16public override string? KeyboardShortcut => !this.TryGetOwnerAs(out Label? owner) || !owner.UseMnemonic ? null : base.KeyboardShortcut; 24if (!this.TryGetOwnerAs(out Label? owner))
System\Windows\Forms\Controls\Labels\Label.LabelImageIndexer.cs (2)
13private readonly Label _owner; 16public LabelImageIndexer(Label owner)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
18private Label _messageLabel;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
18private readonly Label _titleLabel; 19private readonly Label _descriptionLabel;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
198|| (hostedControl is Label label && string.IsNullOrEmpty(label.Text));
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
63/// Gets or sets the image that is displayed on a <see cref="Label"/>.
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
382/// Gets or sets the image that is displayed on a <see cref="Label"/>. 1016/// Gets or sets the image that is displayed on a <see cref="Label"/>.
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabelAccessibleObject.cs (1)
11internal sealed class StickyLabelAccessibleObject : Label.LabelAccessibleObject
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
192Label grayStrip = new Label
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
60private readonly Label _message = new();
System.Windows.Forms.Design (40)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
39private Label _membersLabel; 40private Label _propertiesLabel;
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
14private readonly Label _titleLabel; 15private readonly Label _subtitleLabel;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
15private readonly Label _label;
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
13private readonly Label _label;
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
24private Label _splitterLabel;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (4)
15private Label _columnInDataSourceLabel; 25private Label _nameLabel; 27private Label _typeLabel; 29private Label _headerTextLabel;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (3)
18private Label _label1; 26private Label _normalLabel; 27private Label _selectedLabel;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
12private Label _selectedColumnsLabel; 20private Label _propertyGridLabel;
System\Windows\Forms\Design\DesignBindingPicker.cs (4)
140Label addNewDiv = new() 180Label helpTextDiv = new() 267Label addNewDiv = new() 312Label helpTextDiv = new()
System\Windows\Forms\Design\FormatControl.Designer.cs (6)
197private System.Windows.Forms.Label explanationLabel; 198private System.Windows.Forms.Label formatTypeLabel; 201private System.Windows.Forms.Label sampleLabel; 203private System.Windows.Forms.Label nullValueLabel; 204private System.Windows.Forms.Label secondRowLabel; 206private System.Windows.Forms.Label thirdRowLabel;
System\Windows\Forms\Design\LabelDesigner.cs (2)
65Label? label = Control as Label;
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
16private Label _caption = new();
System\Windows\Forms\Design\MaskDesignerDialog.cs (3)
16private Label _lblHeader; 23private Label _lblMask; 25private Label _lblTryIt;
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (2)
39private Label _keyLabel; 40private Label _modifiersLabel;
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
17private Label _instruction;
System\Windows\Forms\Design\StyleEditorForm.cs (3)
51private Label _memberTypeLabel; 60private Label _pixelsLabel; 62private Label _percentLabel;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (2)
42private Label _label1; 44private Label _label2;
System.Windows.Forms.Design.Tests (5)
EnsureEditorsTests.cs (3)
101[InlineData(typeof(Label), "ImageIndex", typeof(ImageIndexEditor))] 102[InlineData(typeof(Label), "ImageKey", typeof(ImageIndexEditor))] 103[InlineData(typeof(Label), "Text", typeof(MultilineStringEditor))]
System\Windows\Forms\Design\LabelDesignerTests.cs (2)
20using Label label = new(); 30using Label label = new();
System.Windows.Forms.Tests (58)
SerializableTypesTests.cs (1)
288Label label20_21 = new() { Name = "label20_21" };
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (4)
650using Label control = new() 754using Label control = new() 775using Label control = new() 796using Label control = new()
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (14)
418using Label previousLabel = new() 443using Label previousLabel = new() 468using Label previousLabel = new() 658using Label previousLabel = new() 684using Label previousLabel = new() 710using Label previousLabel = new() 1226using Label control = new(); 1649yield return new object[] { typeof(Label) }; 1668control.GetType().GetProperty(nameof(Label.UseMnemonic)).SetValue(control, false); 1672if (control is not Label) 1675using Label label = new(); 1689control.GetType().GetProperty(nameof(Label.UseMnemonic)).SetValue(control, true); 1711control.GetType().GetProperty(nameof(Label.UseMnemonic)).SetValue(control, false); 1719control.GetType().GetProperty(nameof(Label.UseMnemonic)).SetValue(control, true);
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (1)
352using Label label1 = new();
System\Windows\Forms\AccessibleObjects\LabelAccessibleObjectTests.cs (11)
6using LabelAccessibleObject = System.Windows.Forms.Label.LabelAccessibleObject; 17using Label label = new() 34using Label label = new(); 48using Label label = new(); 61using Label label = new(); 74using Label label = new(); 87using Label label = new(); 115using Label label = new(); 150using Label label = new() { Text = text, UseMnemonic = useMnemonic }; 161Action action = () => new Label.LabelAccessibleObject(null); 175using Label label = new() { Text = labelText, UseMnemonic = useMnemonic };
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
891Label emptyLabel = new();
System\Windows\Forms\LabelTests.cs (26)
218using Label label = new(); 225using Label label = new(); 245using Label control = new(); 264using Label control = new() 289using Label label = new() 318using Label control = new() 356using Label label = new(); 392using Label label = new(); 402using Label label = new(); 415using Label label = new(); 428using Label label = new(); 462using Label label = new(); 500using Label label = new(); 525using Label label = new(); 560using Label label = new(); 579using Label label = new(); 620using Label label = new(); 654using Label label = new(); 681using Label label = new(); 695using Label label = new(); 726using Label label = new(); 734using Label label = new(); 807using Label label = new(); 828using Label label = new(); 849using Label label = new(); 868using Label label = new()
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
583private readonly Label _dropLocationLabel;
WinFormsControlsTest (55)
Calendar.Designer.cs (5)
263private System.Windows.Forms.Label label1; 264private System.Windows.Forms.Label label2; 267private System.Windows.Forms.Label label3; 269private System.Windows.Forms.Label label4; 274private System.Windows.Forms.Label label5;
CollectionEditors.Designer.cs (1)
130private System.Windows.Forms.Label label1;
ComboBoxes.Designer.cs (2)
308private System.Windows.Forms.Label label1; 309private System.Windows.Forms.Label dataBoundLabel;
ComboBoxesWithScrollBars.Designer.cs (3)
383private System.Windows.Forms.Label label1; 384private System.Windows.Forms.Label label2; 385private System.Windows.Forms.Label label3;
DataGridViewTest.Designer.cs (1)
240private System.Windows.Forms.Label label1;
DesignTimeAligned.Designer.cs (2)
112private System.Windows.Forms.Label label1; 113private System.Windows.Forms.Label label2;
ErrorProviderTest.Designer.cs (4)
153private System.Windows.Forms.Label label1_2; 154private System.Windows.Forms.Label label1; 155private System.Windows.Forms.Label label2_1; 156private System.Windows.Forms.Label label2;
FormBorderStyles.Designer.cs (1)
72private System.Windows.Forms.Label lblFormBorderStyle;
ListBoxes.Designer.cs (4)
232private System.Windows.Forms.Label label1; 237private System.Windows.Forms.Label label2; 242private System.Windows.Forms.Label label3; 247private System.Windows.Forms.Label label4;
MenuStripAndCheckedListBox.Designer.cs (1)
328private System.Windows.Forms.Label currentDpiLabel;
MultipleControls.Designer.cs (1)
335private System.Windows.Forms.Label label1;
Password.Designer.cs (11)
270private Label label1; 271private Label label2; 279private Label label3; 280private Label label4; 281private Label label5; 282private Label label6; 283private Label label7; 284private Label label8; 285private Label label9; 286private Label label10; 287private Label label11;
RichTextBoxes.cs (1)
128Label textLabel = new() { Left = 50, Top = 20, Text = text };
ScrollableControls.Designer.cs (7)
474private Label label1; 481private Label label2; 485private Label label3; 495private Label label4; 496private Label label5; 499private Label label6; 500private Label label7;
ScrollBars.Designer.cs (4)
163private System.Windows.Forms.Label lblMinimum; 164private System.Windows.Forms.Label lblMaximum; 165private System.Windows.Forms.Label lblHValue; 166private System.Windows.Forms.Label lblVValue;
ToolStripSeparatorPreferredSize.cs (1)
103private Label _label1;
ToolStripTests.Designer.cs (1)
472private System.Windows.Forms.Label label1;
TrackBars.Designer.cs (5)
289private System.Windows.Forms.Label lblMinimum; 290private System.Windows.Forms.Label lblMaximum; 291private System.Windows.Forms.Label lblTickFrequency; 292private System.Windows.Forms.Label lblTrackBarSize; 293private System.Windows.Forms.Label lblTrackBarValue;