26 references to Center
System.Windows.Forms (19)
winforms\Managed\System\WinForms\ColumnHeader.cs (1)
337
if (!ClientUtils.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.
Center
)){
winforms\Managed\System\WinForms\DataGrid.cs (1)
7215
colAlignment == HorizontalAlignment.
Center
? StringAlignment.Center :
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
121
if (!ClientUtils.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.
Center
)){
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (1)
606
format.Alignment = this.Alignment == HorizontalAlignment.Left ? StringAlignment.Near : this.Alignment == HorizontalAlignment.
Center
? StringAlignment.Center : StringAlignment.Far;
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (1)
333
return HorizontalAlignment.
Center
;
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (1)
195
((hAlign == HorizontalAlignment.
Center
) ? TextFormatFlags.HorizontalCenter :
winforms\Managed\System\WinForms\DrawListViewSubItemEventArgs.cs (1)
198
((hAlign == HorizontalAlignment.
Center
) ? TextFormatFlags.HorizontalCenter :
winforms\Managed\System\WinForms\ListView.cs (1)
3480
case HorizontalAlignment.
Center
:
winforms\Managed\System\WinForms\ListViewGroup.cs (1)
134
if (!ClientUtils.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.
Center
)){
winforms\Managed\System\WinForms\MaskedTextBox.cs (2)
357
case HorizontalAlignment.
Center
:
1416
if (!ClientUtils.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.
Center
))
winforms\Managed\System\WinForms\RichTextBox.cs (3)
846
selectionAlignment = HorizontalAlignment.
Center
;
855
if (!ClientUtils.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.
Center
))
873
case HorizontalAlignment.
Center
:
winforms\Managed\System\WinForms\StatusBarPanel.cs (2)
94
if (!ClientUtils.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.
Center
)){
609
case HorizontalAlignment.
Center
:
winforms\Managed\System\WinForms\TextBox.cs (2)
340
case HorizontalAlignment.
Center
:
498
if (!ClientUtils.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.
Center
)){
winforms\Managed\System\WinForms\UpDownBase.cs (1)
629
if (!ClientUtils.IsEnumValid(value, (int)value, (int)HorizontalAlignment.Left, (int)HorizontalAlignment.
Center
))
System.Workflow.ComponentModel (7)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (4)
188
this.headerAlignmentComboBox.Items.AddRange(new object[] { HorizontalAlignment.Left, HorizontalAlignment.
Center
, HorizontalAlignment.Right });
192
this.headerAlignmentComboBox.SelectedItem = HorizontalAlignment.
Center
;
224
this.footerAlignmentComboBox.Items.AddRange(new object[] { HorizontalAlignment.Left, HorizontalAlignment.
Center
, HorizontalAlignment.Right });
228
this.footerAlignmentComboBox.SelectedItem = HorizontalAlignment.
Center
;
AuthoringOM\Design\WorkflowPrinting.cs (3)
279
case HorizontalAlignment.
Center
:
412
private HorizontalAlignment headerAlignment = HorizontalAlignment.
Center
;
413
private HorizontalAlignment footerAlignment = HorizontalAlignment.
Center
;