39 references to MiddleRight
System.Windows.Forms (17)
System\Windows\Forms\Control.cs (2)
10544
return ContentAlignment.
MiddleRight
;
10545
case ContentAlignment.
MiddleRight
:
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
333
[ContentAlignment.MiddleLeft, ContentAlignment.
MiddleRight
],
409
case ContentAlignment.
MiddleRight
:
System\Windows\Forms\Controls\Buttons\CheckBox.cs (1)
26
private const ContentAlignment AnyRight = ContentAlignment.TopRight | ContentAlignment.
MiddleRight
| ContentAlignment.BottomRight;
System\Windows\Forms\Controls\Buttons\RadioButton.cs (1)
27
private const ContentAlignment AnyRight = ContentAlignment.TopRight | ContentAlignment.
MiddleRight
| ContentAlignment.BottomRight;
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
29
DataGridViewContentAlignment.MiddleRight => ContentAlignment.
MiddleRight
,
System\Windows\Forms\Controls\Labels\Label.cs (1)
275
case ContentAlignment.
MiddleRight
:
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (2)
994
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, Text, InternalLayout.TextRectangle, textColor, Font, (rightToLeft) ? ContentAlignment.
MiddleRight
: ContentAlignment.MiddleLeft));
1003
renderer.DrawItemText(new ToolStripItemTextRenderEventArgs(g, this, GetShortcutText(), InternalLayout.TextRectangle, textColor, Font, (rightToLeft) ? ContentAlignment.MiddleLeft : ContentAlignment.
MiddleRight
));
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
13
public const ContentAlignment AnyRightAlign = ContentAlignment.TopRight | ContentAlignment.
MiddleRight
| ContentAlignment.BottomRight;
17
public const ContentAlignment AnyMiddleAlign = ContentAlignment.MiddleLeft | ContentAlignment.MiddleCenter | ContentAlignment.
MiddleRight
;
System\Windows\Forms\Layout\LayoutUtils.cs (3)
21
public const ContentAlignment AnyRight = ContentAlignment.TopRight | ContentAlignment.
MiddleRight
| ContentAlignment.BottomRight;
23
public const ContentAlignment AnyMiddle = ContentAlignment.MiddleLeft | ContentAlignment.MiddleCenter | ContentAlignment.
MiddleRight
;
106
Debug.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)
56
return ContentAlignment.
MiddleRight
;
90
case ContentAlignment.
MiddleRight
:
System\Windows\Forms\Design\DesignerUtils.cs (1)
108
public const ContentAlignment AnyMiddleAlignment = ContentAlignment.MiddleLeft | ContentAlignment.MiddleCenter | ContentAlignment.
MiddleRight
;
System.Windows.Forms.Tests (17)
System\Windows\Forms\ButtonBaseTests.cs (3)
195
yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.
MiddleRight
, 0x56012D00, 0x6000 };
205
yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.
MiddleRight
, 0x56012E00, 0 };
215
yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.
MiddleRight
, 0x56012E00, 0 };
System\Windows\Forms\ButtonTests.cs (3)
217
yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.
MiddleRight
, 0x56012D00, 0x6000 };
227
yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.
MiddleRight
, 0x56012E00, 0 };
237
yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.
MiddleRight
, 0x56012E00, 0 };
System\Windows\Forms\ControlTests.Methods.cs (2)
6917
yield return new object[] { RightToLeft.Yes, ContentAlignment.MiddleLeft, ContentAlignment.
MiddleRight
};
6918
yield 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)
183
ContentAlignment.
MiddleRight
,
System\Windows\Forms\ToolStripButtonTests.cs (3)
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\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)
50
this.label1.TextAlign = System.Drawing.ContentAlignment.
MiddleRight
;
61
this.label2.TextAlign = System.Drawing.ContentAlignment.
MiddleRight
;