44 references to VerticalCenter
System.Windows.Forms (17)
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)
72
tff = TextFormatFlags.
VerticalCenter
;
84
tff = TextFormatFlags.
VerticalCenter
| TextFormatFlags.HorizontalCenter;
87
tff = TextFormatFlags.
VerticalCenter
;
126
tff = TextFormatFlags.HorizontalCenter | TextFormatFlags.
VerticalCenter
;
469
TextFormatFlags.
VerticalCenter
|
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\Rendering\ControlPaint.cs (1)
2514
flags |= TextFormatFlags.
VerticalCenter
;
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.Design (1)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
197
TextFormatFlags formatFlags = TextFormatFlags.HorizontalCenter | TextFormatFlags.
VerticalCenter
;
System.Windows.Forms.Tests (26)
System\Windows\Forms\ControlPaintTests.cs (7)
1949
yield return new object[] { s, SystemFonts.MenuFont, Color.Red, Rectangle.Empty, TextFormatFlags.
VerticalCenter
};
1950
yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new Rectangle(1, 2, -3, -4), TextFormatFlags.
VerticalCenter
};
1951
yield return new object[] { s, SystemFonts.MenuFont, Color.Red, new Rectangle(1, 2, 3, 4), TextFormatFlags.
VerticalCenter
};
1952
yield return new object[] { s, SystemFonts.MenuFont, Color.Black, new Rectangle(1, 2, 3, 4), TextFormatFlags.
VerticalCenter
};
1953
yield return new object[] { s, SystemFonts.MenuFont, Color.White, new Rectangle(1, 2, 3, 4), TextFormatFlags.
VerticalCenter
};
1954
yield return new object[] { s, SystemFonts.MenuFont, Color.Transparent, new Rectangle(1, 2, 3, 4), TextFormatFlags.
VerticalCenter
};
1955
yield return new object[] { s, SystemFonts.MenuFont, Color.Empty, new Rectangle(1, 2, 3, 4), TextFormatFlags.
VerticalCenter
};
System\Windows\Forms\TextRendererTests.cs (5)
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 };
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 };
1239
yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.
VerticalCenter
| TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1240
yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.
VerticalCenter
| TextFormatFlags.HidePrefix };
1241
yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.
VerticalCenter
| 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 };
1245
yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.
VerticalCenter
| TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1246
yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.
VerticalCenter
| TextFormatFlags.HidePrefix };
1247
yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.
VerticalCenter
| 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 };
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (1)
462
yield return new object[] { new Rectangle(0, 0, 3, 4), textToDraw, drawDisabled, TextFormatFlags.
VerticalCenter
};