78 references to Center
System.Windows.Forms (11)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
308return HorizontalAlignment.Center;
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
129((hAlign == HorizontalAlignment.Center) ? TextFormatFlags.HorizontalCenter :
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (1)
125((hAlign == HorizontalAlignment.Center) ? TextFormatFlags.HorizontalCenter :
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5733case HorizontalAlignment.Center: 5760case HorizontalAlignment.Center:
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
690selectionAlignment = HorizontalAlignment.Center; 719case HorizontalAlignment.Center:
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
323case HorizontalAlignment.Center:
System\Windows\Forms\Controls\TextBox\TextBox.cs (3)
296case HorizontalAlignment.Center: 876case HorizontalAlignment.Center: 895case HorizontalAlignment.Center:
System.Windows.Forms.Tests (65)
MaskedTextBoxTests.cs (2)
658[InlineData(HorizontalAlignment.Center)] 695control.TextAlign = HorizontalAlignment.Center;
SerializableTypesTests.cs (2)
126ListViewGroup listViewGroup = new("Header", HorizontalAlignment.Center) 146Assert.Equal(HorizontalAlignment.Center, result.HeaderAlignment);
System\Windows\Forms\ColumnHeaderCollectionTests.cs (3)
198yield return new object[] { string.Empty, 0, HorizontalAlignment.Center, string.Empty }; 266yield return new object[] { string.Empty, string.Empty, 0, HorizontalAlignment.Center, 0, string.Empty, string.Empty }; 291yield return new object[] { string.Empty, string.Empty, 0, HorizontalAlignment.Center, string.Empty, string.Empty, string.Empty, string.Empty };
System\Windows\Forms\ColumnHeaderTests.cs (14)
1121[InlineData(0, HorizontalAlignment.Center, HorizontalAlignment.Left)] 1124[InlineData(1, HorizontalAlignment.Center, HorizontalAlignment.Center)] 1146[InlineData(0, HorizontalAlignment.Center, HorizontalAlignment.Left)] 1149[InlineData(1, HorizontalAlignment.Center, HorizontalAlignment.Center)] 1184[InlineData(0, HorizontalAlignment.Center, 0x4000)] 1187[InlineData(1, HorizontalAlignment.Center, 0x4002)] 1469TextAlign = HorizontalAlignment.Center, 1485Assert.Equal(HorizontalAlignment.Center, header.TextAlign); 1506TextAlign = HorizontalAlignment.Center, 1524Assert.Equal(HorizontalAlignment.Center, header.TextAlign); 1544TextAlign = HorizontalAlignment.Center, 1564Assert.Equal(HorizontalAlignment.Center, header.TextAlign);
System\Windows\Forms\ControlTests.Methods.cs (2)
6985yield return new object[] { RightToLeft.Yes, HorizontalAlignment.Center, HorizontalAlignment.Center };
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (12)
572null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 581null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 627null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 636null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 682null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 691null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false 781null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 790null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 836null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 845null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, true 891null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.Center, false 900null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.Center, false
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (1)
83[InlineData(HorizontalAlignment.Center)]
System\Windows\Forms\ListViewGroupConverterTests.cs (2)
192new ListViewGroup("header", HorizontalAlignment.Center), 194new object[] { "header", HorizontalAlignment.Center }
System\Windows\Forms\ListViewGroupTests.cs (7)
59yield return new object[] { "reasonable", HorizontalAlignment.Center, "reasonable" }; 61yield return new object[] { "reasonable", HorizontalAlignment.Center + 1, "reasonable" }; 731yield return new object[] { string.Empty, HorizontalAlignment.Center, 0x00000010 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT }; 735yield return new object[] { "footer", HorizontalAlignment.Center, 0x00000010 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT }; 983yield return new object[] { string.Empty, HorizontalAlignment.Center, 0x00000002 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT }; 987yield return new object[] { "header", HorizontalAlignment.Center, 0x00000002 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT }; 1322yield return new object[] { new ListViewGroup("header", HorizontalAlignment.Center) { Name = "name", Tag = "tag" } };
System\Windows\Forms\ListViewTests.cs (8)
1877yield return new object[] { showGroups, null, HorizontalAlignment.Center, null, HorizontalAlignment.Center, string.Empty, string.Empty, 0x00000012 }; 1881yield return new object[] { showGroups, string.Empty, HorizontalAlignment.Center, string.Empty, HorizontalAlignment.Center, string.Empty, string.Empty, 0x00000012 }; 1885yield return new object[] { showGroups, "header", HorizontalAlignment.Center, "footer", HorizontalAlignment.Center, "header", "footer", 0x00000012 }; 1889yield return new object[] { showGroups, "he\0der", HorizontalAlignment.Center, "fo\0oter", HorizontalAlignment.Center, "he", "fo", 0x00000012 };
System\Windows\Forms\RichTextBoxTests.cs (3)
3676yield return new object[] { PFM.ALIGNMENT, PFA.CENTER, HorizontalAlignment.Center }; 3680yield return new object[] { PFM.ALIGNMENT | PFM.ALIGNMENT, PFA.CENTER, HorizontalAlignment.Center }; 3765[InlineData(HorizontalAlignment.Center, 3)]
System\Windows\Forms\ToolStripTextBoxTests.cs (7)
333[InlineData(HorizontalAlignment.Center)] 650_toolStripTextBox.TextBoxTextAlign = HorizontalAlignment.Center; 652_toolStripTextBox.TextBoxTextAlign.Should().Be(HorizontalAlignment.Center); 669_toolStripTextBox.TextBoxTextAlign = HorizontalAlignment.Center; 672_toolStripTextBox.TextBoxTextAlign.Should().Be(HorizontalAlignment.Center); 681_toolStripTextBox.TextBoxTextAlign = HorizontalAlignment.Center; 684_toolStripTextBox.TextBoxTextAlign.Should().Be(HorizontalAlignment.Center);
TextBoxTests.cs (2)
421tb.TextAlign = HorizontalAlignment.Center; 440tb.TextAlign = HorizontalAlignment.Center;
WinFormsControlsTest (2)
ListViewTest.cs (1)
122listView2.Columns.Add("Column 4", -2, HorizontalAlignment.Center);
MultipleControls.cs (1)
84listView2.Columns.Add("Column 4", -2, HorizontalAlignment.Center);