55 references to TopLeft
PresentationUI (1)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (1)
396
this._descriptionLabel.ImageAlign = System.Drawing.ContentAlignment.
TopLeft
;
System.Windows.Forms (19)
System\Windows\Forms\Control.cs (2)
10532
case ContentAlignment.
TopLeft
:
10535
return ContentAlignment.
TopLeft
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (2)
578
CheckAlign = ContentAlignment.
TopLeft
,
605
CheckAlign = ContentAlignment.
TopLeft
,
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (3)
332
[ContentAlignment.
TopLeft
, ContentAlignment.TopRight],
396
case ContentAlignment.
TopLeft
:
451
/// For example, <see cref="ContentAlignment.
TopLeft
"/> maps to <see cref="TextImageRelation.ImageAboveText"/>
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
24
DataGridViewContentAlignment.TopLeft => ContentAlignment.
TopLeft
,
System\Windows\Forms\Controls\Labels\Label.cs (4)
269
case ContentAlignment.
TopLeft
:
692
[DefaultValue(ContentAlignment.
TopLeft
)]
696
get => Properties.GetValueOrDefault(s_propTextAlign, ContentAlignment.
TopLeft
);
703
Properties.AddOrRemoveValue(s_propTextAlign, value, defaultValue: ContentAlignment.
TopLeft
);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
114
layoutOptions.CheckAlign = ContentAlignment.
TopLeft
;
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
14
public const ContentAlignment AnyLeftAlign = ContentAlignment.
TopLeft
| ContentAlignment.MiddleLeft | ContentAlignment.BottomLeft;
15
public const ContentAlignment AnyTopAlign = ContentAlignment.
TopLeft
| ContentAlignment.TopCenter | ContentAlignment.TopRight;
System\Windows\Forms\Layout\CommonProperties.cs (1)
26
internal const ContentAlignment DefaultAlignment = ContentAlignment.
TopLeft
;
System\Windows\Forms\Layout\LayoutUtils.cs (3)
18
public const ContentAlignment AnyTop = ContentAlignment.
TopLeft
| ContentAlignment.TopCenter | ContentAlignment.TopRight;
20
public const ContentAlignment AnyLeft = ContentAlignment.
TopLeft
| ContentAlignment.MiddleLeft | ContentAlignment.BottomLeft;
100
Debug.Assert(result != 0x00 || alignment == ContentAlignment.
TopLeft
, "Error detected in ContentAlignmentToIndex.");
System.Windows.Forms.Design (10)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
37
TextAlign = ContentAlignment.
TopLeft
,
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (2)
36
return ContentAlignment.
TopLeft
;
75
case ContentAlignment.
TopLeft
:
System\Windows\Forms\Design\ComboBoxDesigner.cs (1)
35
int baseline = DesignerUtils.GetTextBaseline(Control, Drawing.ContentAlignment.
TopLeft
);
System\Windows\Forms\Design\DesignBindingPicker.cs (2)
189
TextAlign = ContentAlignment.
TopLeft
,
321
TextAlign = ContentAlignment.
TopLeft
,
System\Windows\Forms\Design\DesignerUtils.cs (1)
107
public const ContentAlignment AnyTopAlignment = ContentAlignment.
TopLeft
| ContentAlignment.TopCenter | ContentAlignment.TopRight;
System\Windows\Forms\Design\LabelDesigner.cs (1)
33
ContentAlignment alignment = ContentAlignment.
TopLeft
;
System\Windows\Forms\Design\TextBoxBaseDesigner.cs (1)
29
int baseline = DesignerUtils.GetTextBaseline(Control, Drawing.ContentAlignment.
TopLeft
);
System\Windows\Forms\Design\UpDownBaseDesigner.cs (1)
45
int baseline = DesignerUtils.GetTextBaseline(Control, Drawing.ContentAlignment.
TopLeft
);
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\TextBoxBaseDesignerTests.cs (1)
61
int expectedBaseline = DesignerUtils.GetTextBaseline(_textbox, Drawing.ContentAlignment.
TopLeft
) + expectedBaselineOffset;
System\Windows\Forms\Design\UpDownBaseDesignerTests.cs (1)
60
int expectedBaseline = DesignerUtils.GetTextBaseline(_numericUpDown, Drawing.ContentAlignment.
TopLeft
) + expectedBaselineOffset;
System.Windows.Forms.Tests (23)
System\Windows\Forms\ButtonBaseTests.cs (3)
196
yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.
TopLeft
, 0x56012600, 0x6000 };
206
yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.
TopLeft
, 0x56012500, 0 };
216
yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.
TopLeft
, 0x56012500, 0 };
System\Windows\Forms\ButtonTests.cs (3)
218
yield return new object[] { FlatStyle.System, RightToLeft.Yes, ContentAlignment.
TopLeft
, 0x56012600, 0x6000 };
228
yield return new object[] { FlatStyle.System, RightToLeft.No, ContentAlignment.
TopLeft
, 0x56012500, 0 };
238
yield return new object[] { FlatStyle.System, RightToLeft.Inherit, ContentAlignment.
TopLeft
, 0x56012500, 0 };
System\Windows\Forms\ControlTests.Methods.cs (2)
6920
yield return new object[] { RightToLeft.Yes, ContentAlignment.
TopLeft
, ContentAlignment.TopRight };
6921
yield return new object[] { RightToLeft.Yes, ContentAlignment.TopRight, ContentAlignment.
TopLeft
};
System\Windows\Forms\LabelTests.cs (5)
105
Assert.Equal(ContentAlignment.
TopLeft
, control.TextAlign);
381
[InlineData(ContentAlignment.
TopLeft
)]
403
label.TextAlign = ContentAlignment.
TopLeft
;
408
label.TextAlign = ContentAlignment.
TopLeft
;
416
label.TextAlign = ContentAlignment.
TopLeft
;
System\Windows\Forms\RadioButtonTests.cs (1)
177
ContentAlignment.
TopLeft
,
System\Windows\Forms\ToolStripButtonTests.cs (3)
1229
yield return new object[] { ContentAlignment.
TopLeft
, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1230
yield return new object[] { ContentAlignment.
TopLeft
, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1231
yield return new object[] { ContentAlignment.
TopLeft
, RightToLeft.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripItemTests.cs (4)
4186
[InlineData(ContentAlignment.
TopLeft
, 1)]
4233
[InlineData(ContentAlignment.
TopLeft
, 1)]
8302
[InlineData(ContentAlignment.
TopLeft
, 1)]
8349
[InlineData(ContentAlignment.
TopLeft
, 1)]
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
37
yield return new object[] { new ToolStripButton(), null, Rectangle.Empty, Color.Empty, null, ContentAlignment.
TopLeft
- 1, TextFormatFlags.Default | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
67
Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.
TopLeft
));