43 references to HorizontalCenter
System.Windows.Forms (22)
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (2)
136
TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
211
TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (2)
97
TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
171
TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (2)
98
TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
171
TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (5)
57
tff = TextFormatFlags.Top | TextFormatFlags.
HorizontalCenter
;
84
tff = TextFormatFlags.VerticalCenter | TextFormatFlags.
HorizontalCenter
;
111
tff = TextFormatFlags.Bottom | TextFormatFlags.
HorizontalCenter
;
126
tff = TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter;
453
TextFormatFlags.
HorizontalCenter
|
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\TabControl\TabRenderer.cs (2)
65
TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
114
TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.SingleLine,
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
877
flags |= TextFormatFlags.
HorizontalCenter
;
896
flags |= TextFormatFlags.
HorizontalCenter
;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2523
flags |= TextFormatFlags.
HorizontalCenter
;
System\Windows\Forms\Rendering\TextRenderer.cs (2)
296
TextFormatFlags flags = TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter)
328
TextFormatFlags flags = TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter)
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (1)
84
DrawText(TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
365
DrawText(dc, bounds, textToDraw, drawDisabled, TextFormatFlags.
HorizontalCenter
);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
197
TextFormatFlags formatFlags = TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter;
System.Windows.Forms.Tests (20)
System\Windows\Forms\TextRendererTests.cs (7)
91
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.
HorizontalCenter
};
92
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, TextFormatFlags.VerticalCenter | TextFormatFlags.
HorizontalCenter
};
133
yield return new object[] { hint, text, SystemFonts.MenuFont, Point.Empty, Color.Red, Color.Blue, TextFormatFlags.VerticalCenter | TextFormatFlags.
HorizontalCenter
};
239
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.
HorizontalCenter
};
240
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, TextFormatFlags.VerticalCenter | TextFormatFlags.
HorizontalCenter
};
284
yield return new object[] { hint, text, SystemFonts.MenuFont, new Rectangle(1, 2, 300, 400), Color.Red, Color.Blue, TextFormatFlags.VerticalCenter | TextFormatFlags.
HorizontalCenter
};
447
yield return new object[] { "string", SystemFonts.MenuFont, new Size(100, 200), TextFormatFlags.VerticalCenter | TextFormatFlags.
HorizontalCenter
};
System\Windows\Forms\ToolStripButtonTests.cs (12)
1225
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.No, ToolStripItemDisplayStyle.None, 0, 0, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1226
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.No, ToolStripItemDisplayStyle.Image, 1, 0, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1227
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.No, ToolStripItemDisplayStyle.ImageAndText, 1, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1232
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1233
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1234
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1242
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1243
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1244
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1252
yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1253
yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1254
yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.
HorizontalCenter
| TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (1)
38
yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.MiddleCenter, TextFormatFlags.Default | TextFormatFlags.
HorizontalCenter
| TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };