141 references to Left
System.Windows.Forms (32)
System\Windows\Forms\Control.cs (2)
10533
if (align == HorizontalAlignment.
Left
)
10539
return HorizontalAlignment.
Left
;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
312
return HorizontalAlignment.
Left
;
System\Windows\Forms\Controls\ListView\ColumnHeader.cs (4)
29
private HorizontalAlignment _textAlign = HorizontalAlignment.
Left
;
326
[DefaultValue(HorizontalAlignment.
Left
)]
352
if (Index == 0 && _textAlign != HorizontalAlignment.
Left
)
354
_textAlign = HorizontalAlignment.
Left
;
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (2)
127
HorizontalAlignment hAlign = Header?.TextAlign ?? HorizontalAlignment.
Left
;
128
TextFormatFlags flags = (hAlign == HorizontalAlignment.
Left
) ? TextFormatFlags.Left :
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
123
HorizontalAlignment hAlign = Header?.TextAlign ?? HorizontalAlignment.
Left
;
124
TextFormatFlags flags = (hAlign == HorizontalAlignment.
Left
) ? TextFormatFlags.Left :
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5727
case HorizontalAlignment.
Left
:
5754
case HorizontalAlignment.
Left
:
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (5)
20
private HorizontalAlignment _headerAlignment = HorizontalAlignment.
Left
;
22
private 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
)]
665
HorizontalAlignment selectionAlignment = HorizontalAlignment.
Left
;
682
selectionAlignment = HorizontalAlignment.
Left
;
711
case HorizontalAlignment.
Left
:
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
320
case HorizontalAlignment.
Left
:
1238
[DefaultValue(HorizontalAlignment.
Left
)]
System\Windows\Forms\Controls\TextBox\TextBox.cs (6)
50
private HorizontalAlignment _textAlign = HorizontalAlignment.
Left
;
293
case HorizontalAlignment.
Left
:
308
&& _textAlign == HorizontalAlignment.
Left
443
[DefaultValue(HorizontalAlignment.
Left
)]
880
case HorizontalAlignment.
Left
:
899
case 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)
50
TextAlign = 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)
197
yield return new object[] { null, -1, HorizontalAlignment.
Left
, string.Empty };
265
yield return new object[] { null, null, -1, HorizontalAlignment.
Left
, -1, string.Empty, string.Empty };
290
yield return new object[] { null, null, -1, HorizontalAlignment.
Left
, null, string.Empty, string.Empty, string.Empty };
System\Windows\Forms\ColumnHeaderTests.cs (25)
31
Assert.Equal(HorizontalAlignment.
Left
, header.TextAlign);
57
Assert.Equal(HorizontalAlignment.
Left
, header.TextAlign);
81
Assert.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
)]
1037
Assert.Equal(HorizontalAlignment.
Left
, header1.TextAlign);
1041
Assert.Equal(HorizontalAlignment.
Left
, header1.TextAlign);
1047
Assert.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)
6986
yield return new object[] { RightToLeft.Yes, HorizontalAlignment.
Left
, HorizontalAlignment.Right };
6987
yield return new object[] { RightToLeft.Yes, HorizontalAlignment.Right, HorizontalAlignment.
Left
};
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (19)
120
Assert.Equal(HorizontalAlignment.
Left
, control.TextAlign);
546
yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Left
, false };
555
yield return new object[] { customStyle, font, Color.Gray, Color.Green, false, HorizontalAlignment.
Left
, false };
563
yield return new object[] { transparentStyle, font, Color.FromArgb(0xFF, 0x34, 0x56, 0x78), Color.FromArgb(0x23, 0x45, 0x67, 0x80), false, HorizontalAlignment.
Left
, false };
590
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Left
, false
599
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Left
, true
645
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Left
, false
654
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Left
, true
700
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Left
, false
709
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Left
, false
755
yield return new object[] { new DataGridViewCellStyle(), null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Left
, false };
764
yield return new object[] { customStyle, font, Color.Gray, SystemColors.Control, Color.Green, false, HorizontalAlignment.
Left
, false };
772
yield 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 };
799
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Left
, false
808
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Left
, true
854
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Left
, false
863
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Left
, true
909
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Left
, false
918
null, 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)
176
new object[] { "ListViewGroup", HorizontalAlignment.
Left
}
182
new object[] { "headerText", HorizontalAlignment.
Left
}
188
new object[] { "header", HorizontalAlignment.
Left
}
System\Windows\Forms\ListViewGroupTests.cs (16)
19
Assert.Equal(HorizontalAlignment.
Left
, group.FooterAlignment);
21
Assert.Equal(HorizontalAlignment.
Left
, group.HeaderAlignment);
40
Assert.Equal(HorizontalAlignment.
Left
, group.FooterAlignment);
42
Assert.Equal(HorizontalAlignment.
Left
, group.HeaderAlignment);
57
yield return new object[] { null, HorizontalAlignment.
Left
, string.Empty };
60
yield return new object[] { "reasonable", HorizontalAlignment.
Left
- 1, "reasonable" };
70
Assert.Equal(HorizontalAlignment.
Left
, group.FooterAlignment);
98
Assert.Equal(HorizontalAlignment.
Left
, group.FooterAlignment);
100
Assert.Equal(HorizontalAlignment.
Left
, group.HeaderAlignment);
730
yield return new object[] { string.Empty, HorizontalAlignment.
Left
, 0x00000008 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT };
734
yield return new object[] { "footer", HorizontalAlignment.
Left
, 0x00000008 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT };
982
yield return new object[] { string.Empty, HorizontalAlignment.
Left
, 0x00000001 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT };
986
yield return new object[] { "header", HorizontalAlignment.
Left
, 0x00000001 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT };
1373
Assert.Equal(HorizontalAlignment.
Left
, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment)));
1391
Assert.Equal(HorizontalAlignment.
Left
, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment)));
1409
Assert.Equal(HorizontalAlignment.
Left
, info.GetValue("HeaderAlignment", typeof(HorizontalAlignment)));
System\Windows\Forms\ListViewTests.cs (8)
1876
yield return new object[] { showGroups, null, HorizontalAlignment.
Left
, null, HorizontalAlignment.Right, string.Empty, string.Empty, 0x00000021 };
1878
yield return new object[] { showGroups, null, HorizontalAlignment.Right, null, HorizontalAlignment.
Left
, string.Empty, string.Empty, 0x0000000C };
1880
yield return new object[] { showGroups, string.Empty, HorizontalAlignment.
Left
, string.Empty, HorizontalAlignment.Right, string.Empty, string.Empty, 0x00000021 };
1882
yield return new object[] { showGroups, string.Empty, HorizontalAlignment.Right, string.Empty, HorizontalAlignment.
Left
, string.Empty, string.Empty, 0x0000000C };
1884
yield return new object[] { showGroups, "header", HorizontalAlignment.
Left
, "footer", HorizontalAlignment.Right, "header", "footer", 0x00000021 };
1886
yield return new object[] { showGroups, "header", HorizontalAlignment.Right, "footer", HorizontalAlignment.
Left
, "header", "footer", 0x0000000C };
1888
yield return new object[] { showGroups, "he\0der", HorizontalAlignment.
Left
, "fo\0oter", HorizontalAlignment.Right, "he", "fo", 0x00000021 };
1890
yield return new object[] { showGroups, "he\0der", HorizontalAlignment.Right, "fo\0oter", HorizontalAlignment.
Left
, "he", "fo", 0x0000000C };
System\Windows\Forms\RichTextBoxTests.cs (14)
3637
Assert.Equal(HorizontalAlignment.
Left
, control.SelectionAlignment);
3641
Assert.Equal(HorizontalAlignment.
Left
, control.SelectionAlignment);
3657
Assert.Equal(HorizontalAlignment.
Left
, control.SelectionAlignment);
3664
Assert.Equal(HorizontalAlignment.
Left
, control.SelectionAlignment);
3673
yield return new object[] { 0, 0, HorizontalAlignment.
Left
};
3674
yield return new object[] { 0, PFA.CENTER, HorizontalAlignment.
Left
};
3675
yield return new object[] { PFM.ALIGNMENT, PFA.LEFT, HorizontalAlignment.
Left
};
3678
yield return new object[] { PFM.ALIGNMENT, PFA.JUSTIFY, HorizontalAlignment.
Left
};
3679
yield return new object[] { PFM.ALIGNMENT, PFA.FULL_INTERWORD, HorizontalAlignment.
Left
};
3681
yield return new object[] { PFM.NUMBERING, PFA.CENTER, HorizontalAlignment.
Left
};
3705
Assert.Equal(HorizontalAlignment.
Left
, control.SelectionAlignment);
3764
[InlineData(HorizontalAlignment.
Left
, 1)]
3799
Assert.Equal(HorizontalAlignment.
Left
, control.SelectionAlignment);
3804
Assert.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)
123
Assert.Equal(HorizontalAlignment.
Left
, control.TextAlign);
TextBoxTests.cs (1)
113
Assert.Equal(HorizontalAlignment.
Left
, control.TextAlign);
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
50
ListViewGroup group = new($"Group 1", HorizontalAlignment.
Left
) { CollapsedState = ListViewGroupCollapsedState.Expanded };
WinFormsControlsTest (6)
ListViewTest.cs (3)
119
listView2.Columns.Add("column1", "Item Column", -2, HorizontalAlignment.
Left
, 0);
120
listView2.Columns.Add("Column 2", -2, HorizontalAlignment.
Left
);
121
listView2.Columns.Add("Column 3", -2, HorizontalAlignment.
Left
);
MultipleControls.cs (3)
81
listView2.Columns.Add("column1", "Item Column", -2, HorizontalAlignment.
Left
, 0);
82
listView2.Columns.Add("Column 2", -2, HorizontalAlignment.
Left
);
83
listView2.Columns.Add("Column 3", -2, HorizontalAlignment.
Left
);