30 references to TopCenter
System.Windows.Forms (10)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (1)
419
case ContentAlignment.
TopCenter
:
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
25
DataGridViewContentAlignment.TopCenter => ContentAlignment.
TopCenter
,
System\Windows\Forms\Controls\Labels\Label.cs (1)
279
case ContentAlignment.
TopCenter
:
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
15
public const ContentAlignment AnyTopAlign = ContentAlignment.TopLeft | ContentAlignment.
TopCenter
| ContentAlignment.TopRight;
18
public const ContentAlignment AnyCenterAlign = ContentAlignment.
TopCenter
| ContentAlignment.MiddleCenter | ContentAlignment.BottomCenter;
System\Windows\Forms\Layout\LayoutUtils.cs (4)
18
public const ContentAlignment AnyTop = ContentAlignment.TopLeft | ContentAlignment.
TopCenter
| ContentAlignment.TopRight;
22
public const ContentAlignment AnyCenter = ContentAlignment.
TopCenter
| ContentAlignment.MiddleCenter | ContentAlignment.BottomCenter;
101
Debug.Assert(result != 0x01 || alignment == ContentAlignment.
TopCenter
, "Error detected in ContentAlignmentToIndex.");
479
return (align & (ContentAlignment.
TopCenter
| ContentAlignment.BottomCenter)) != 0;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
62
= ContentAlignment.
TopCenter
| ContentAlignment.MiddleCenter | ContentAlignment.BottomCenter;
System.Windows.Forms.Design (3)
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (2)
40
return ContentAlignment.
TopCenter
;
78
case ContentAlignment.
TopCenter
:
System\Windows\Forms\Design\DesignerUtils.cs (1)
107
public const ContentAlignment AnyTopAlignment = ContentAlignment.TopLeft | ContentAlignment.
TopCenter
| ContentAlignment.TopRight;
System.Windows.Forms.Tests (17)
System\Windows\Forms\ButtonBaseTests.cs (3)
197
yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.
TopCenter
, 0x56012700, 0x6000 };
207
yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.
TopCenter
, 0x56012700, 0 };
217
yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.
TopCenter
, 0x56012700, 0 };
System\Windows\Forms\ButtonTests.cs (3)
219
yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.
TopCenter
, 0x56012700, 0x6000 };
229
yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.
TopCenter
, 0x56012700, 0 };
239
yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.
TopCenter
, 0x56012700, 0 };
System\Windows\Forms\ControlTests.Methods.cs (2)
6919
yield return new object[] { RightToLeft.Yes, ContentAlignment.
TopCenter
, ContentAlignment.
TopCenter
};
System\Windows\Forms\LabelTests.cs (1)
382
[InlineData(ContentAlignment.
TopCenter
)]
System\Windows\Forms\RadioButtonTests.cs (1)
184
ContentAlignment.
TopCenter
,
System\Windows\Forms\ToolStripButtonTests.cs (3)
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 };
System\Windows\Forms\ToolStripItemTests.cs (4)
4187
[InlineData(ContentAlignment.
TopCenter
, 1)]
4234
[InlineData(ContentAlignment.
TopCenter
, 1)]
8303
[InlineData(ContentAlignment.
TopCenter
, 1)]
8350
[InlineData(ContentAlignment.
TopCenter
, 1)]