62 references to MiddleLeft
PresentationUI (1)
MS\Internal\Documents\RMPermissions.Designer.cs (1)
123
this.requestFromLabel.TextAlign = System.Drawing.ContentAlignment.
MiddleLeft
;
System.Windows.Forms (24)
System\Windows\Forms\Control.cs (2)
10550
case ContentAlignment.
MiddleLeft
:
10553
return ContentAlignment.
MiddleLeft
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (2)
333
[ContentAlignment.
MiddleLeft
, ContentAlignment.MiddleRight],
397
case ContentAlignment.
MiddleLeft
:
System\Windows\Forms\Controls\Buttons\CheckBox.cs (4)
28
private ContentAlignment _checkAlign = ContentAlignment.
MiddleLeft
;
49
TextAlign = ContentAlignment.
MiddleLeft
;
113
[DefaultValue(ContentAlignment.
MiddleLeft
)]
335
[DefaultValue(ContentAlignment.
MiddleLeft
)]
System\Windows\Forms\Controls\Buttons\RadioButton.cs (4)
33
private ContentAlignment _checkAlign = ContentAlignment.
MiddleLeft
;
48
TextAlign = ContentAlignment.
MiddleLeft
;
120
[DefaultValue(ContentAlignment.
MiddleLeft
)]
305
[DefaultValue(ContentAlignment.
MiddleLeft
)]
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
27
DataGridViewContentAlignment.MiddleLeft => ContentAlignment.
MiddleLeft
,
System\Windows\Forms\Controls\Labels\Label.cs (1)
270
case ContentAlignment.
MiddleLeft
:
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
147
ImageAlign = ContentAlignment.
MiddleLeft
,
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\Dialogs\ThreadExceptionDialog.cs (1)
296
button.ImageAlign = ContentAlignment.
MiddleLeft
;
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
14
public const ContentAlignment AnyLeftAlign = ContentAlignment.TopLeft | ContentAlignment.
MiddleLeft
| ContentAlignment.BottomLeft;
17
public const ContentAlignment AnyMiddleAlign = ContentAlignment.
MiddleLeft
| ContentAlignment.MiddleCenter | ContentAlignment.MiddleRight;
System\Windows\Forms\Layout\LayoutUtils.cs (3)
20
public const ContentAlignment AnyLeft = ContentAlignment.TopLeft | ContentAlignment.
MiddleLeft
| ContentAlignment.BottomLeft;
23
public const ContentAlignment AnyMiddle = ContentAlignment.
MiddleLeft
| ContentAlignment.MiddleCenter | ContentAlignment.MiddleRight;
104
Debug.Assert(result != 0x04 || alignment == ContentAlignment.
MiddleLeft
, "Error detected in ContentAlignmentToIndex.");
System\Windows\Forms\Rendering\ControlPaint.cs (1)
64
= ContentAlignment.
MiddleLeft
| ContentAlignment.MiddleCenter | ContentAlignment.MiddleRight;
System.Windows.Forms.Design (14)
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (2)
21
CheckAlign = ContentAlignment.
MiddleLeft
,
22
TextAlign = ContentAlignment.
MiddleLeft
,
System\ComponentModel\Design\DesignerActionPanel.MethodLine.cs (1)
26
TextAlign = ContentAlignment.
MiddleLeft
,
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (2)
27
TextAlign = ContentAlignment.
MiddleLeft
,
35
TextAlign = ContentAlignment.
MiddleLeft
,
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
28
TextAlign = ContentAlignment.
MiddleLeft
,
System\ComponentModel\Design\DesignerActionPanel.TextLine.cs (1)
24
TextAlign = ContentAlignment.
MiddleLeft
,
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (3)
48
return ContentAlignment.
MiddleLeft
;
84
case ContentAlignment.
MiddleLeft
:
453
=> Align = Value is ContentAlignment contentAligment ? contentAligment : ContentAlignment.
MiddleLeft
;
System\Windows\Forms\Design\DateTimePickerDesigner.cs (1)
27
int baseline = DesignerUtils.GetTextBaseline(Control, ContentAlignment.
MiddleLeft
);
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
150
TextAlign = ContentAlignment.
MiddleLeft
,
277
TextAlign = ContentAlignment.
MiddleLeft
,
System\Windows\Forms\Design\DesignerUtils.cs (1)
108
public const ContentAlignment AnyMiddleAlignment = ContentAlignment.
MiddleLeft
| ContentAlignment.MiddleCenter | ContentAlignment.MiddleRight;
System.Windows.Forms.Tests (22)
System\Windows\Forms\ButtonBaseTests.cs (3)
193
yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.
MiddleLeft
, 0x56012E00, 0x6000 };
203
yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.
MiddleLeft
, 0x56012D00, 0 };
213
yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.
MiddleLeft
, 0x56012D00, 0 };
System\Windows\Forms\ButtonTests.cs (3)
215
yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.
MiddleLeft
, 0x56012E00, 0x6000 };
225
yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.
MiddleLeft
, 0x56012D00, 0 };
235
yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.
MiddleLeft
, 0x56012D00, 0 };
System\Windows\Forms\CheckBoxTests.cs (2)
42
Assert.Equal(ContentAlignment.
MiddleLeft
, control.CheckAlign);
111
Assert.Equal(ContentAlignment.
MiddleLeft
, control.TextAlign);
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)
384
[InlineData(ContentAlignment.
MiddleLeft
)]
System\Windows\Forms\RadioButtonTests.cs (4)
42
Assert.Equal(ContentAlignment.
MiddleLeft
, control.CheckAlign);
109
Assert.Equal(ContentAlignment.
MiddleLeft
, control.TextAlign);
182
ContentAlignment.
MiddleLeft
,
342
int expectedCallCount = value == ContentAlignment.
MiddleLeft
? 0 : 1;
System\Windows\Forms\ToolStripButtonTests.cs (3)
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 };
System\Windows\Forms\ToolStripItemTests.cs (4)
4189
[InlineData(ContentAlignment.
MiddleLeft
, 1)]
4236
[InlineData(ContentAlignment.
MiddleLeft
, 1)]
8305
[InlineData(ContentAlignment.
MiddleLeft
, 1)]
8352
[InlineData(ContentAlignment.
MiddleLeft
, 1)]
WinFormsControlsTest (1)
DesignTimeAligned.Designer.cs (1)
71
this.button1.TextAlign = System.Drawing.ContentAlignment.
MiddleLeft
;