139 references to HorizontalAlignment
System.Web.Mobile (2)
UI\MobileControls\Design\StylesEditorDialog.cs (2)
184
chStyleType.TextAlign = System.Windows.Forms.
HorizontalAlignment
.Left;
186
chStyleNamespace.TextAlign = System.Windows.Forms.
HorizontalAlignment
.Left;
System.Windows.Forms (115)
winforms\Managed\System\WinForms\ColumnHeader.cs (10)
47
private
HorizontalAlignment
textAlign =
HorizontalAlignment
.Left;
319
DefaultValue(
HorizontalAlignment
.Left)
321
public
HorizontalAlignment
TextAlign {
330
this.textAlign =
HorizontalAlignment
.Right;
337
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
HorizontalAlignment
.Left, (int)
HorizontalAlignment
.Center)){
338
throw new InvalidEnumArgumentException("value", (int)value, typeof(
HorizontalAlignment
));
344
if (Index == 0 && this.textAlign !=
HorizontalAlignment
.Left) {
345
this.textAlign =
HorizontalAlignment
.Left;
winforms\Managed\System\WinForms\Control.cs (8)
12316
protected
HorizontalAlignment
RtlTranslateAlignment(
HorizontalAlignment
align) {
12343
protected
HorizontalAlignment
RtlTranslateHorizontal(
HorizontalAlignment
align) {
12346
if (
HorizontalAlignment
.Left == align) {
12347
return
HorizontalAlignment
.Right;
12349
else if (
HorizontalAlignment
.Right == align) {
12350
return
HorizontalAlignment
.Left;
winforms\Managed\System\WinForms\DataGrid.cs (3)
7213
HorizontalAlignment
colAlignment = gridColumns[col].Alignment;
7214
format.Alignment = colAlignment ==
HorizontalAlignment
.Right ? StringAlignment.Far :
7215
colAlignment ==
HorizontalAlignment
.Center ? StringAlignment.Center :
winforms\Managed\System\WinForms\DataGridColumn.cs (6)
42
private
HorizontalAlignment
alignment =
HorizontalAlignment
.Left;
114
DefaultValue(
HorizontalAlignment
.Left)]
115
public virtual
HorizontalAlignment
Alignment {
121
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
HorizontalAlignment
.Left, (int)
HorizontalAlignment
.Center)){
winforms\Managed\System\WinForms\DataGridTextBoxColumn.cs (2)
606
format.Alignment = this.Alignment ==
HorizontalAlignment
.Left ? StringAlignment.Near : this.Alignment ==
HorizontalAlignment
.Center ? StringAlignment.Center : StringAlignment.Far;
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (4)
325
private static
HorizontalAlignment
TranslateAlignment(DataGridViewContentAlignment align)
329
return
HorizontalAlignment
.Right;
333
return
HorizontalAlignment
.Center;
337
return
HorizontalAlignment
.Left;
winforms\Managed\System\WinForms\DrawListViewColumnHeaderEventArgs.cs (3)
193
HorizontalAlignment
hAlign = header.TextAlign;
194
TextFormatFlags flags = (hAlign ==
HorizontalAlignment
.Left) ? TextFormatFlags.Left :
195
((hAlign ==
HorizontalAlignment
.Center) ? TextFormatFlags.HorizontalCenter :
winforms\Managed\System\WinForms\DrawListViewSubItemEventArgs.cs (3)
196
HorizontalAlignment
hAlign = header.TextAlign;
197
TextFormatFlags flags = (hAlign ==
HorizontalAlignment
.Left) ? TextFormatFlags.Left :
198
((hAlign ==
HorizontalAlignment
.Center) ? TextFormatFlags.HorizontalCenter :
winforms\Managed\System\WinForms\ListView.cs (9)
3474
case
HorizontalAlignment
.Left:
3477
case
HorizontalAlignment
.Right:
3480
case
HorizontalAlignment
.Center:
7849
public virtual ColumnHeader Add(string text, int width,
HorizontalAlignment
textAlign) {
7917
public virtual ColumnHeader Add(string key, string text, int width,
HorizontalAlignment
textAlign, string imageKey) {
7930
public virtual ColumnHeader Add(string key, string text, int width,
HorizontalAlignment
textAlign, int imageIndex) {
8091
public void Insert(int index, string text, int width,
HorizontalAlignment
textAlign) {
8149
public void Insert(int index, string key, string text, int width,
HorizontalAlignment
textAlign, string imageKey) {
8162
public void Insert(int index, string key, string text, int width,
HorizontalAlignment
textAlign, int imageIndex) {
winforms\Managed\System\WinForms\ListViewGroup.cs (9)
40
private
HorizontalAlignment
headerAlignment =
HorizontalAlignment
.Left;
91
public ListViewGroup(string header,
HorizontalAlignment
headerAlignment) : this(header) {
122
DefaultValue(
HorizontalAlignment
.Left),
125
public
HorizontalAlignment
HeaderAlignment {
134
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
HorizontalAlignment
.Left, (int)
HorizontalAlignment
.Center)){
135
throw new InvalidEnumArgumentException("value", (int)value, typeof(
HorizontalAlignment
));
245
HeaderAlignment = (
HorizontalAlignment
)entry.Value;
winforms\Managed\System\WinForms\ListViewGroupConverter.cs (1)
106
ctor = typeof(ListViewGroup).GetConstructor(new Type[] {typeof(string), typeof(
HorizontalAlignment
)});
winforms\Managed\System\WinForms\MaskedTextBox.cs (10)
116
private
HorizontalAlignment
textAlign;
350
HorizontalAlignment
align = RtlTranslateHorizontal(textAlign);
354
case
HorizontalAlignment
.Left:
357
case
HorizontalAlignment
.Center:
360
case
HorizontalAlignment
.Right:
1401
DefaultValue(
HorizontalAlignment
.Left),
1404
public
HorizontalAlignment
TextAlign
1416
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
HorizontalAlignment
.Left, (int)
HorizontalAlignment
.Center))
1418
throw new InvalidEnumArgumentException("value", (int)value, typeof(
HorizontalAlignment
));
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1490
pageCounter.TextAlign =
HorizontalAlignment
.Right;
winforms\Managed\System\WinForms\RichTextBox.cs (13)
818
DefaultValue(
HorizontalAlignment
.Left),
823
public
HorizontalAlignment
SelectionAlignment {
825
HorizontalAlignment
selectionAlignment =
HorizontalAlignment
.Left;
838
selectionAlignment =
HorizontalAlignment
.Left;
842
selectionAlignment =
HorizontalAlignment
.Right;
846
selectionAlignment =
HorizontalAlignment
.Center;
855
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
HorizontalAlignment
.Left, (int)
HorizontalAlignment
.Center))
857
throw new InvalidEnumArgumentException("value", (int)value, typeof(
HorizontalAlignment
));
865
case
HorizontalAlignment
.Left:
869
case
HorizontalAlignment
.Right:
873
case
HorizontalAlignment
.Center:
winforms\Managed\System\WinForms\StatusBarPanel.cs (14)
47
private
HorizontalAlignment
alignment =
HorizontalAlignment
.Left;
83
DefaultValue(
HorizontalAlignment
.Left),
87
public
HorizontalAlignment
Alignment {
94
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
HorizontalAlignment
.Left, (int)
HorizontalAlignment
.Center)){
95
throw new InvalidEnumArgumentException("value", (int)value, typeof(
HorizontalAlignment
));
594
HorizontalAlignment
align = alignment;
599
case
HorizontalAlignment
.Left:
600
align =
HorizontalAlignment
.Right;
602
case
HorizontalAlignment
.Right:
603
align =
HorizontalAlignment
.Left;
609
case
HorizontalAlignment
.Center:
612
case
HorizontalAlignment
.Right:
winforms\Managed\System\WinForms\TextBox.cs (12)
74
private
HorizontalAlignment
textAlign =
HorizontalAlignment
.Left;
334
HorizontalAlignment
align = RtlTranslateHorizontal(textAlign);
337
case
HorizontalAlignment
.Left:
340
case
HorizontalAlignment
.Center:
343
case
HorizontalAlignment
.Right:
351
&& textAlign ==
HorizontalAlignment
.Left
486
DefaultValue(
HorizontalAlignment
.Left),
489
public
HorizontalAlignment
TextAlign {
498
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
HorizontalAlignment
.Left, (int)
HorizontalAlignment
.Center)){
499
throw new InvalidEnumArgumentException("value", (int)value, typeof(
HorizontalAlignment
));
winforms\Managed\System\WinForms\ToolStripTextBox.cs (2)
478
DefaultValue(
HorizontalAlignment
.Left),
481
public
HorizontalAlignment
TextBoxTextAlign {
winforms\Managed\System\WinForms\UpDownBase.cs (5)
620
DefaultValue(
HorizontalAlignment
.Left),
623
public
HorizontalAlignment
TextAlign {
629
if (!ClientUtils.IsEnumValid(value, (int)value, (int)
HorizontalAlignment
.Left, (int)
HorizontalAlignment
.Center))
631
throw new InvalidEnumArgumentException("value", (int)value, typeof(
HorizontalAlignment
));
System.Workflow.ComponentModel (22)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (10)
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;
987
this.printDocument.PageSetupData.HeaderAlignment = (
HorizontalAlignment
)this.headerAlignmentComboBox.SelectedItem;
999
this.printDocument.PageSetupData.FooterAlignment = (
HorizontalAlignment
)this.footerAlignmentComboBox.SelectedItem;
AuthoringOM\Design\WorkflowPrinting.cs (12)
269
HorizontalAlignment
alignment = (drawHeader) ? this.pageSetupData.HeaderAlignment : this.pageSetupData.FooterAlignment;
274
case
HorizontalAlignment
.Left:
279
case
HorizontalAlignment
.Center:
284
case
HorizontalAlignment
.Right:
412
private
HorizontalAlignment
headerAlignment =
HorizontalAlignment
.Center;
413
private
HorizontalAlignment
footerAlignment =
HorizontalAlignment
.Center;
445
if (null != registryValue && registryValue is int) this.headerAlignment = (
HorizontalAlignment
)registryValue;
448
if (null != registryValue && registryValue is int) this.footerAlignment = (
HorizontalAlignment
)registryValue;
582
public
HorizontalAlignment
HeaderAlignment
587
public
HorizontalAlignment
FooterAlignment