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