39 references to MiddleRight
System.Windows.Forms (17)
System\Windows\Forms\Control.cs (2)
10551return ContentAlignment.MiddleRight; 10552case ContentAlignment.MiddleRight:
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
333[ContentAlignment.MiddleLeft, ContentAlignment.MiddleRight], 409case ContentAlignment.MiddleRight:
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
26private const ContentAlignment AnyRight = ContentAlignment.TopRight | ContentAlignment.MiddleRight | ContentAlignment.BottomRight;
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
27private const ContentAlignment AnyRight = ContentAlignment.TopRight | ContentAlignment.MiddleRight | ContentAlignment.BottomRight;
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
29DataGridViewContentAlignment.MiddleRight => ContentAlignment.MiddleRight,
System\Windows\Forms\Controls\Labels\Label.cs (1)
275case ContentAlignment.MiddleRight:
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
994renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, Text, InternalLayout.TextRectangle, textColor, Font, (rightToLeft) ? ContentAlignment.MiddleRight : ContentAlignment.MiddleLeft)); 1003renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, GetShortcutText(), InternalLayout.TextRectangle, textColor, Font, (rightToLeft) ? ContentAlignment.MiddleLeft : ContentAlignment.MiddleRight));
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
13public const ContentAlignment AnyRightAlign = ContentAlignment.TopRight | ContentAlignment.MiddleRight | ContentAlignment.BottomRight; 17public const ContentAlignment AnyMiddleAlign = ContentAlignment.MiddleLeft | ContentAlignment.MiddleCenter | ContentAlignment.MiddleRight;
System\Windows\Forms\Layout\LayoutUtils.cs (3)
21public const ContentAlignment AnyRight = ContentAlignment.TopRight | ContentAlignment.MiddleRight | ContentAlignment.BottomRight; 23public const ContentAlignment AnyMiddle = ContentAlignment.MiddleLeft | ContentAlignment.MiddleCenter | ContentAlignment.MiddleRight; 106Debug.Assert(result != 0x06 || alignment == ContentAlignment.MiddleRight, "Error detected in ContentAlignmentToIndex.");
System\Windows\Forms\Rendering\ControlPaint.cs (2)
58= ContentAlignment.TopRight | ContentAlignment.MiddleRight | ContentAlignment.BottomRight; 64= ContentAlignment.MiddleLeft | ContentAlignment.MiddleCenter | ContentAlignment.MiddleRight;
System.Windows.Forms.Design (3)
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (2)
56return ContentAlignment.MiddleRight; 90case ContentAlignment.MiddleRight:
System\Windows\Forms\Design\DesignerUtils.cs (1)
108public const ContentAlignment AnyMiddleAlignment = ContentAlignment.MiddleLeft | ContentAlignment.MiddleCenter | ContentAlignment.MiddleRight;
System.Windows.Forms.Tests (17)
System\Windows\Forms\ButtonBaseTests.cs (3)
195yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.MiddleRight, 0x56012D00, 0x6000 }; 205yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.MiddleRight, 0x56012E00, 0 }; 215yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleRight, 0x56012E00, 0 };
System\Windows\Forms\ButtonTests.cs (3)
217yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.MiddleRight, 0x56012D00, 0x6000 }; 227yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.MiddleRight, 0x56012E00, 0 }; 237yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.MiddleRight, 0x56012E00, 0 };
System\Windows\Forms\ControlTests.Methods.cs (2)
6917yield return new object[] { RightToLeft.Yes, ContentAlignment.MiddleLeft, ContentAlignment.MiddleRight }; 6918yield return new object[] { RightToLeft.Yes, ContentAlignment.MiddleRight, ContentAlignment.MiddleLeft };
System\Windows\Forms\LabelTests.cs (1)
386[InlineData(ContentAlignment.MiddleRight)]
System\Windows\Forms\RadioButtonTests.cs (1)
183ContentAlignment.MiddleRight,
System\Windows\Forms\ToolStripButtonTests.cs (3)
1245yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft }; 1246yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix }; 1247yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripItemTests.cs (4)
4191[InlineData(ContentAlignment.MiddleRight, 1)] 4238[InlineData(ContentAlignment.MiddleRight, 1)] 8307[InlineData(ContentAlignment.MiddleRight, 1)] 8354[InlineData(ContentAlignment.MiddleRight, 1)]
WinFormsControlsTest (2)
DesignTimeAligned.Designer.cs (2)
50this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; 61this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight;