141 references to Left
System.Windows.Forms (32)
System\Windows\Forms\Control.cs (2)
10500if (align == HorizontalAlignment.Left) 10506return HorizontalAlignment.Left;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
314return HorizontalAlignment.Left;
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (4)
29private HorizontalAlignment _textAlign = HorizontalAlignment.Left; 326[DefaultValue(HorizontalAlignment.Left)] 352if (Index == 0 && _textAlign != HorizontalAlignment.Left) 354_textAlign = HorizontalAlignment.Left;
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (2)
127HorizontalAlignment hAlign = Header?.TextAlign ?? HorizontalAlignment.Left; 128TextFormatFlags flags = (hAlign == HorizontalAlignment.Left) ? TextFormatFlags.Left :
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
123HorizontalAlignment hAlign = Header?.TextAlign ?? HorizontalAlignment.Left; 124TextFormatFlags flags = (hAlign == HorizontalAlignment.Left) ? TextFormatFlags.Left :
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5723case HorizontalAlignment.Left: 5750case HorizontalAlignment.Left:
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (5)
20private HorizontalAlignment _headerAlignment = HorizontalAlignment.Left; 22private HorizontalAlignment _footerAlignment = HorizontalAlignment.Left; 104[DefaultValue(HorizontalAlignment.Left)] 149/// The default is <see cref="HorizontalAlignment.Left"/>. 154[DefaultValue(HorizontalAlignment.Left)]
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (4)
657[DefaultValue(HorizontalAlignment.Left)] 665HorizontalAlignment selectionAlignment = HorizontalAlignment.Left; 682selectionAlignment = HorizontalAlignment.Left; 711case HorizontalAlignment.Left:
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
320case HorizontalAlignment.Left: 1238[DefaultValue(HorizontalAlignment.Left)]
System\Windows\Forms\Controls\TextBox\TextBox.cs (6)
50private HorizontalAlignment _textAlign = HorizontalAlignment.Left; 293case HorizontalAlignment.Left: 308&& _textAlign == HorizontalAlignment.Left 443[DefaultValue(HorizontalAlignment.Left)] 880case HorizontalAlignment.Left: 899case HorizontalAlignment.Left:
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
352[DefaultValue(HorizontalAlignment.Left)]
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
402[DefaultValue(HorizontalAlignment.Left)]
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
50TextAlign = HorizontalAlignment.Left,
System.Windows.Forms.Tests (101)
MaskedTextBoxTests.cs (2)
41_maskedTextBox.TextAlign.Should().Be(HorizontalAlignment.Left); 657[InlineData(HorizontalAlignment.Left)]
System\Windows\Forms\ColumnHeaderCollectionTests.cs (3)
197yield return new object[] { null, -1, HorizontalAlignment.Left, string.Empty }; 265yield return new object[] { null, null, -1, HorizontalAlignment.Left, -1, string.Empty, string.Empty }; 290yield return new object[] { null, null, -1, HorizontalAlignment.Left, null, string.Empty, string.Empty, string.Empty };
System\Windows\Forms\ColumnHeaderTests.cs (25)
31Assert.Equal(HorizontalAlignment.Left, header.TextAlign); 57Assert.Equal(HorizontalAlignment.Left, header.TextAlign); 81Assert.Equal(HorizontalAlignment.Left, header.TextAlign); 1020[InlineData(RightToLeft.No, true, HorizontalAlignment.Left)] 1021[InlineData(RightToLeft.Yes, true, HorizontalAlignment.Left)] 1022[InlineData(RightToLeft.Inherit, true, HorizontalAlignment.Left)] 1023[InlineData(RightToLeft.No, false, HorizontalAlignment.Left)] 1025[InlineData(RightToLeft.Inherit, false, HorizontalAlignment.Left)] 1037Assert.Equal(HorizontalAlignment.Left, header1.TextAlign); 1041Assert.Equal(HorizontalAlignment.Left, header1.TextAlign); 1047Assert.Equal(HorizontalAlignment.Left, header1.TextAlign); 1121[InlineData(0, HorizontalAlignment.Center, HorizontalAlignment.Left)] 1122[InlineData(0, HorizontalAlignment.Left, HorizontalAlignment.Left)] 1123[InlineData(0, HorizontalAlignment.Right, HorizontalAlignment.Left)] 1125[InlineData(1, HorizontalAlignment.Left, HorizontalAlignment.Left)] 1146[InlineData(0, HorizontalAlignment.Center, HorizontalAlignment.Left)] 1147[InlineData(0, HorizontalAlignment.Left, HorizontalAlignment.Left)] 1148[InlineData(0, HorizontalAlignment.Right, HorizontalAlignment.Left)] 1150[InlineData(1, HorizontalAlignment.Left, HorizontalAlignment.Left)] 1185[InlineData(0, HorizontalAlignment.Left, 0x4000)] 1188[InlineData(1, HorizontalAlignment.Left, 0x4000)]
System\Windows\Forms\ControlTests.Methods.cs (2)
6977yield return new object[] { RightToLeft.Yes, HorizontalAlignment.Left, HorizontalAlignment.Right }; 6978yield return new object[] { RightToLeft.Yes, HorizontalAlignment.Right, HorizontalAlignment.Left };
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (19)
120Assert.Equal(HorizontalAlignment.Left, control.TextAlign); 546yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 555yield return new object[] { customStyle, font, Color.Gray, Color.Green, false, HorizontalAlignment.Left, false }; 563yield return new object[] { transparentStyle, font, Color.FromArgb(0xFF, 0x34, 0x56, 0x78), Color.FromArgb(0x23, 0x45, 0x67, 0x80), false, HorizontalAlignment.Left, false }; 590null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 599null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 645null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 654null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 700null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 709null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 755yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 764yield return new object[] { customStyle, font, Color.Gray, SystemColors.Control, Color.Green, false, HorizontalAlignment.Left, false }; 772yield return new object[] { transparentStyle, font, Color.FromArgb(0xFF, 0x34, 0x56, 0x78), Color.FromArgb(0xFF, 0x34, 0x56, 0x78), Color.FromArgb(0x23, 0x45, 0x67, 0x80), false, HorizontalAlignment.Left, false }; 799null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 808null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 854null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 863null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 909null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 918null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false
System\Windows\Forms\DomainUpDownTests.cs (1)
140_sub.TextAlign.Should().Be(HorizontalAlignment.Left);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (1)
82[InlineData(HorizontalAlignment.Left)]
System\Windows\Forms\ListViewGroupConverterTests.cs (3)
176new object[] { "ListViewGroup", HorizontalAlignment.Left } 182new object[] { "headerText", HorizontalAlignment.Left } 188new object[] { "header", HorizontalAlignment.Left }
System\Windows\Forms\ListViewGroupTests.cs (16)
19Assert.Equal(HorizontalAlignment.Left, group.FooterAlignment); 21Assert.Equal(HorizontalAlignment.Left, group.HeaderAlignment); 40Assert.Equal(HorizontalAlignment.Left, group.FooterAlignment); 42Assert.Equal(HorizontalAlignment.Left, group.HeaderAlignment); 57yield return new object[] { null, HorizontalAlignment.Left, string.Empty }; 60yield return new object[] { "reasonable", HorizontalAlignment.Left - 1, "reasonable" }; 70Assert.Equal(HorizontalAlignment.Left, group.FooterAlignment); 98Assert.Equal(HorizontalAlignment.Left, group.FooterAlignment); 100Assert.Equal(HorizontalAlignment.Left, group.HeaderAlignment); 730yield return new object[] { string.Empty, HorizontalAlignment.Left, 0x00000008 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT }; 734yield return new object[] { "footer", HorizontalAlignment.Left, 0x00000008 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT }; 982yield return new object[] { string.Empty, HorizontalAlignment.Left, 0x00000001 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT }; 986yield return new object[] { "header", HorizontalAlignment.Left, 0x00000001 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT }; 1373Assert.Equal(HorizontalAlignment.Left, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment))); 1391Assert.Equal(HorizontalAlignment.Left, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment))); 1409Assert.Equal(HorizontalAlignment.Left, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment)));
System\Windows\Forms\ListViewTests.cs (8)
1876yield return new object[] { showGroups, null, HorizontalAlignment.Left, null, HorizontalAlignment.Right, string.Empty, string.Empty, 0x00000021 }; 1878yield return new object[] { showGroups, null, HorizontalAlignment.Right, null, HorizontalAlignment.Left, string.Empty, string.Empty, 0x0000000C }; 1880yield return new object[] { showGroups, string.Empty, HorizontalAlignment.Left, string.Empty, HorizontalAlignment.Right, string.Empty, string.Empty, 0x00000021 }; 1882yield return new object[] { showGroups, string.Empty, HorizontalAlignment.Right, string.Empty, HorizontalAlignment.Left, string.Empty, string.Empty, 0x0000000C }; 1884yield return new object[] { showGroups, "header", HorizontalAlignment.Left, "footer", HorizontalAlignment.Right, "header", "footer", 0x00000021 }; 1886yield return new object[] { showGroups, "header", HorizontalAlignment.Right, "footer", HorizontalAlignment.Left, "header", "footer", 0x0000000C }; 1888yield return new object[] { showGroups, "he\0der", HorizontalAlignment.Left, "fo\0oter", HorizontalAlignment.Right, "he", "fo", 0x00000021 }; 1890yield return new object[] { showGroups, "he\0der", HorizontalAlignment.Right, "fo\0oter", HorizontalAlignment.Left, "he", "fo", 0x0000000C };
System\Windows\Forms\RichTextBoxTests.cs (14)
3637Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3641Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3657Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3664Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3673yield return new object[] { 0, 0, HorizontalAlignment.Left }; 3674yield return new object[] { 0, PFA.CENTER, HorizontalAlignment.Left }; 3675yield return new object[] { PFM.ALIGNMENT, PFA.LEFT, HorizontalAlignment.Left }; 3678yield return new object[] { PFM.ALIGNMENT, PFA.JUSTIFY, HorizontalAlignment.Left }; 3679yield return new object[] { PFM.ALIGNMENT, PFA.FULL_INTERWORD, HorizontalAlignment.Left }; 3681yield return new object[] { PFM.NUMBERING, PFA.CENTER, HorizontalAlignment.Left }; 3705Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3764[InlineData(HorizontalAlignment.Left, 1)] 3799Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3804Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment);
System\Windows\Forms\ToolStripTextBoxTests.cs (5)
332[InlineData(HorizontalAlignment.Left)] 655_toolStripTextBox.TextBoxTextAlign = HorizontalAlignment.Left; 657_toolStripTextBox.TextBoxTextAlign.Should().Be(HorizontalAlignment.Left); 675_toolStripTextBox.TextBoxTextAlign = HorizontalAlignment.Left; 678_toolStripTextBox.TextBoxTextAlign.Should().Be(HorizontalAlignment.Left);
System\Windows\Forms\UpDownBaseTests.cs (1)
123Assert.Equal(HorizontalAlignment.Left, control.TextAlign);
TextBoxTests.cs (1)
113Assert.Equal(HorizontalAlignment.Left, control.TextAlign);
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
50ListViewGroup group = new($"Group 1", HorizontalAlignment.Left) { CollapsedState = ListViewGroupCollapsedState.Expanded };
WinFormsControlsTest (6)
ListViewTest.cs (3)
119listView2.Columns.Add("column1", "Item Column", -2, HorizontalAlignment.Left, 0); 120listView2.Columns.Add("Column 2", -2, HorizontalAlignment.Left); 121listView2.Columns.Add("Column 3", -2, HorizontalAlignment.Left);
MultipleControls.cs (3)
81listView2.Columns.Add("column1", "Item Column", -2, HorizontalAlignment.Left, 0); 82listView2.Columns.Add("Column 2", -2, HorizontalAlignment.Left); 83listView2.Columns.Add("Column 3", -2, HorizontalAlignment.Left);