78 references to Center
System.Windows.Forms (11)
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxEditingControl.cs (1)
308
return 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)
5733
case HorizontalAlignment.
Center
:
5760
case HorizontalAlignment.
Center
:
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
690
selectionAlignment = HorizontalAlignment.
Center
;
719
case HorizontalAlignment.
Center
:
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
323
case HorizontalAlignment.
Center
:
System\Windows\Forms\Controls\TextBox\TextBox.cs (3)
296
case HorizontalAlignment.
Center
:
876
case HorizontalAlignment.
Center
:
895
case HorizontalAlignment.
Center
:
System.Windows.Forms.Tests (65)
MaskedTextBoxTests.cs (2)
658
[InlineData(HorizontalAlignment.
Center
)]
695
control.TextAlign = HorizontalAlignment.
Center
;
SerializableTypesTests.cs (2)
126
ListViewGroup listViewGroup = new("Header", HorizontalAlignment.
Center
)
146
Assert.Equal(HorizontalAlignment.
Center
, result.HeaderAlignment);
System\Windows\Forms\ColumnHeaderCollectionTests.cs (3)
198
yield return new object[] { string.Empty, 0, HorizontalAlignment.
Center
, string.Empty };
266
yield return new object[] { string.Empty, string.Empty, 0, HorizontalAlignment.
Center
, 0, string.Empty, string.Empty };
291
yield 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)]
1469
TextAlign = HorizontalAlignment.
Center
,
1485
Assert.Equal(HorizontalAlignment.
Center
, header.TextAlign);
1506
TextAlign = HorizontalAlignment.
Center
,
1524
Assert.Equal(HorizontalAlignment.
Center
, header.TextAlign);
1544
TextAlign = HorizontalAlignment.
Center
,
1564
Assert.Equal(HorizontalAlignment.
Center
, header.TextAlign);
System\Windows\Forms\ControlTests.Methods.cs (2)
6985
yield return new object[] { RightToLeft.Yes, HorizontalAlignment.
Center
, HorizontalAlignment.
Center
};
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (12)
572
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Center
, false
581
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Center
, true
627
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Center
, false
636
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Center
, true
682
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Center
, false
691
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Center
, false
781
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Center
, false
790
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Center
, true
836
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Center
, false
845
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, true, HorizontalAlignment.
Center
, true
891
null, Color.FromArgb(0xFF, 0x00, 0x00, 0x00), Color.FromArgb(0xFF, 0x00, 0x00, 0x00), SystemColors.WindowText, false, HorizontalAlignment.
Center
, false
900
null, 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)
192
new ListViewGroup("header", HorizontalAlignment.
Center
),
194
new object[] { "header", HorizontalAlignment.
Center
}
System\Windows\Forms\ListViewGroupTests.cs (7)
59
yield return new object[] { "reasonable", HorizontalAlignment.
Center
, "reasonable" };
61
yield return new object[] { "reasonable", HorizontalAlignment.
Center
+ 1, "reasonable" };
731
yield return new object[] { string.Empty, HorizontalAlignment.
Center
, 0x00000010 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT };
735
yield return new object[] { "footer", HorizontalAlignment.
Center
, 0x00000010 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_HEADER_LEFT };
983
yield return new object[] { string.Empty, HorizontalAlignment.
Center
, 0x00000002 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT };
987
yield return new object[] { "header", HorizontalAlignment.
Center
, 0x00000002 | (int)LIST_VIEW_GROUP_ALIGN_FLAGS.LVGA_FOOTER_LEFT };
1322
yield return new object[] { new ListViewGroup("header", HorizontalAlignment.
Center
) { Name = "name", Tag = "tag" } };
System\Windows\Forms\ListViewTests.cs (8)
1877
yield return new object[] { showGroups, null, HorizontalAlignment.
Center
, null, HorizontalAlignment.
Center
, string.Empty, string.Empty, 0x00000012 };
1881
yield return new object[] { showGroups, string.Empty, HorizontalAlignment.
Center
, string.Empty, HorizontalAlignment.
Center
, string.Empty, string.Empty, 0x00000012 };
1885
yield return new object[] { showGroups, "header", HorizontalAlignment.
Center
, "footer", HorizontalAlignment.
Center
, "header", "footer", 0x00000012 };
1889
yield return new object[] { showGroups, "he\0der", HorizontalAlignment.
Center
, "fo\0oter", HorizontalAlignment.
Center
, "he", "fo", 0x00000012 };
System\Windows\Forms\RichTextBoxTests.cs (3)
3676
yield return new object[] { PFM.ALIGNMENT, PFA.CENTER, HorizontalAlignment.
Center
};
3680
yield 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)
421
tb.TextAlign = HorizontalAlignment.
Center
;
440
tb.TextAlign = HorizontalAlignment.
Center
;
WinFormsControlsTest (2)
ListViewTest.cs (1)
122
listView2.Columns.Add("Column 4", -2, HorizontalAlignment.
Center
);
MultipleControls.cs (1)
84
listView2.Columns.Add("Column 4", -2, HorizontalAlignment.
Center
);