143 references to Left
System.Windows.Forms (34)
System\Windows\Forms\Control.cs (2)
10531if (align == HorizontalAlignment.Left) 10537return HorizontalAlignment.Left;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
312return 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)
5727case HorizontalAlignment.Left: 5754case 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\Unsupported\DataGrid\DataGridColumnStyle.cs (1)
32[DefaultValue(HorizontalAlignment.Left)]
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBarPanel.cs (1)
29[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)
43_maskedTextBox.TextAlign.Should().Be(HorizontalAlignment.Left); 659[InlineData(HorizontalAlignment.Left)]
System\Windows\Forms\ColumnHeaderCollectionTests.cs (3)
199yield return new object[] { null, -1, HorizontalAlignment.Left, string.Empty }; 267yield return new object[] { null, null, -1, HorizontalAlignment.Left, -1, string.Empty, string.Empty }; 292yield return new object[] { null, null, -1, HorizontalAlignment.Left, null, string.Empty, string.Empty, string.Empty };
System\Windows\Forms\ColumnHeaderTests.cs (25)
33Assert.Equal(HorizontalAlignment.Left, header.TextAlign); 59Assert.Equal(HorizontalAlignment.Left, header.TextAlign); 83Assert.Equal(HorizontalAlignment.Left, header.TextAlign); 1022[InlineData(RightToLeft.No, true, HorizontalAlignment.Left)] 1023[InlineData(RightToLeft.Yes, true, HorizontalAlignment.Left)] 1024[InlineData(RightToLeft.Inherit, true, HorizontalAlignment.Left)] 1025[InlineData(RightToLeft.No, false, HorizontalAlignment.Left)] 1027[InlineData(RightToLeft.Inherit, false, HorizontalAlignment.Left)] 1039Assert.Equal(HorizontalAlignment.Left, header1.TextAlign); 1043Assert.Equal(HorizontalAlignment.Left, header1.TextAlign); 1049Assert.Equal(HorizontalAlignment.Left, header1.TextAlign); 1123[InlineData(0, HorizontalAlignment.Center, HorizontalAlignment.Left)] 1124[InlineData(0, HorizontalAlignment.Left, HorizontalAlignment.Left)] 1125[InlineData(0, HorizontalAlignment.Right, HorizontalAlignment.Left)] 1127[InlineData(1, HorizontalAlignment.Left, HorizontalAlignment.Left)] 1148[InlineData(0, HorizontalAlignment.Center, HorizontalAlignment.Left)] 1149[InlineData(0, HorizontalAlignment.Left, HorizontalAlignment.Left)] 1150[InlineData(0, HorizontalAlignment.Right, HorizontalAlignment.Left)] 1152[InlineData(1, HorizontalAlignment.Left, HorizontalAlignment.Left)] 1187[InlineData(0, HorizontalAlignment.Left, 0x4000)] 1190[InlineData(1, HorizontalAlignment.Left, 0x4000)]
System\Windows\Forms\ControlTests.Methods.cs (2)
6946yield return new object[] { RightToLeft.Yes, HorizontalAlignment.Left, HorizontalAlignment.Right }; 6947yield return new object[] { RightToLeft.Yes, HorizontalAlignment.Right, HorizontalAlignment.Left };
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (19)
122Assert.Equal(HorizontalAlignment.Left, control.TextAlign); 548yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 557yield return new object[] { customStyle, font, Color.Gray, Color.Green, false, HorizontalAlignment.Left, false }; 565yield return new object[] { transparentStyle, font, Color.FromArgb(0xFF, 0x34, 0x56, 0x78), Color.FromArgb(0x23, 0x45, 0x67, 0x80), false, HorizontalAlignment.Left, false }; 592null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 601null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 647null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 656null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 702null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 711null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false 757yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false }; 766yield return new object[] { customStyle, font, Color.Gray, SystemColors.Control, Color.Green, false, HorizontalAlignment.Left, false }; 774yield 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 }; 801null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 810null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 856null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 865null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, true 911null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Left, false 920null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Left, false
System\Windows\Forms\DomainUpDownTests.cs (1)
142_sub.TextAlign.Should().Be(HorizontalAlignment.Left);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (1)
84[InlineData(HorizontalAlignment.Left)]
System\Windows\Forms\ListViewGroupConverterTests.cs (3)
178new object[] { "ListViewGroup", HorizontalAlignment.Left } 184new object[] { "headerText", HorizontalAlignment.Left } 190new object[] { "header", HorizontalAlignment.Left }
System\Windows\Forms\ListViewGroupTests.cs (16)
21Assert.Equal(HorizontalAlignment.Left, group.FooterAlignment); 23Assert.Equal(HorizontalAlignment.Left, group.HeaderAlignment); 42Assert.Equal(HorizontalAlignment.Left, group.FooterAlignment); 44Assert.Equal(HorizontalAlignment.Left, group.HeaderAlignment); 59yield return new object[] { null, HorizontalAlignment.Left, string.Empty }; 62yield return new object[] { "reasonable", HorizontalAlignment.Left - 1, "reasonable" }; 72Assert.Equal(HorizontalAlignment.Left, group.FooterAlignment); 100Assert.Equal(HorizontalAlignment.Left, group.FooterAlignment); 102Assert.Equal(HorizontalAlignment.Left, group.HeaderAlignment); 732yield return new object[] { string.Empty, HorizontalAlignment.Left, 0x00000008 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT }; 736yield return new object[] { "footer", HorizontalAlignment.Left, 0x00000008 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT }; 984yield return new object[] { string.Empty, HorizontalAlignment.Left, 0x00000001 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT }; 988yield return new object[] { "header", HorizontalAlignment.Left, 0x00000001 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT }; 1375Assert.Equal(HorizontalAlignment.Left, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment))); 1393Assert.Equal(HorizontalAlignment.Left, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment))); 1411Assert.Equal(HorizontalAlignment.Left, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment)));
System\Windows\Forms\ListViewTests.cs (8)
1878yield return new object[] { showGroups, null, HorizontalAlignment.Left, null, HorizontalAlignment.Right, string.Empty, string.Empty, 0x00000021 }; 1880yield return new object[] { showGroups, null, HorizontalAlignment.Right, null, HorizontalAlignment.Left, string.Empty, string.Empty, 0x0000000C }; 1882yield return new object[] { showGroups, string.Empty, HorizontalAlignment.Left, string.Empty, HorizontalAlignment.Right, string.Empty, string.Empty, 0x00000021 }; 1884yield return new object[] { showGroups, string.Empty, HorizontalAlignment.Right, string.Empty, HorizontalAlignment.Left, string.Empty, string.Empty, 0x0000000C }; 1886yield return new object[] { showGroups, "header", HorizontalAlignment.Left, "footer", HorizontalAlignment.Right, "header", "footer", 0x00000021 }; 1888yield return new object[] { showGroups, "header", HorizontalAlignment.Right, "footer", HorizontalAlignment.Left, "header", "footer", 0x0000000C }; 1890yield return new object[] { showGroups, "he\0der", HorizontalAlignment.Left, "fo\0oter", HorizontalAlignment.Right, "he", "fo", 0x00000021 }; 1892yield return new object[] { showGroups, "he\0der", HorizontalAlignment.Right, "fo\0oter", HorizontalAlignment.Left, "he", "fo", 0x0000000C };
System\Windows\Forms\RichTextBoxTests.cs (14)
3639Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3643Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3659Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3666Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3675yield return new object[] { 0, 0, HorizontalAlignment.Left }; 3676yield return new object[] { 0, PFA.CENTER, HorizontalAlignment.Left }; 3677yield return new object[] { PFM.ALIGNMENT, PFA.LEFT, HorizontalAlignment.Left }; 3680yield return new object[] { PFM.ALIGNMENT, PFA.JUSTIFY, HorizontalAlignment.Left }; 3681yield return new object[] { PFM.ALIGNMENT, PFA.FULL_INTERWORD, HorizontalAlignment.Left }; 3683yield return new object[] { PFM.NUMBERING, PFA.CENTER, HorizontalAlignment.Left }; 3707Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3766[InlineData(HorizontalAlignment.Left, 1)] 3801Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment); 3806Assert.Equal(HorizontalAlignment.Left, control.SelectionAlignment);
System\Windows\Forms\ToolStripTextBoxTests.cs (5)
334[InlineData(HorizontalAlignment.Left)] 657_toolStripTextBox.TextBoxTextAlign = HorizontalAlignment.Left; 659_toolStripTextBox.TextBoxTextAlign.Should().Be(HorizontalAlignment.Left); 677_toolStripTextBox.TextBoxTextAlign = HorizontalAlignment.Left; 680_toolStripTextBox.TextBoxTextAlign.Should().Be(HorizontalAlignment.Left);
System\Windows\Forms\UpDownBaseTests.cs (1)
125Assert.Equal(HorizontalAlignment.Left, control.TextAlign);
TextBoxTests.cs (1)
115Assert.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);