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