22 references to Top
System.Windows.Forms (8)
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (4)
45
tff = TextFormatFlags.
Top
;
57
tff = TextFormatFlags.
Top
| TextFormatFlags.HorizontalCenter;
60
tff = TextFormatFlags.
Top
;
468
TextFormatFlags.
Top
|
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
78
=> DrawGroupBox(g, bounds, groupBoxText, font, TextFormatFlags.
Top
| TextFormatFlags.Left, state);
90
=> DrawGroupBox(g, bounds, groupBoxText, font, textColor, TextFormatFlags.
Top
| TextFormatFlags.Left, state);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
868
TextFormatFlags flags = TextFormatFlags.NoPadding | TextFormatFlags.
Top
| TextFormatFlags.EndEllipsis;
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2506
TextFormatFlags flags = TextFormatFlags.
Top
| TextFormatFlags.Left;
System.Windows.Forms.Tests (14)
System\Windows\Forms\ToolStripButtonTests.cs (9)
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 };
1232
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.
Top
| TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1233
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.
Top
| TextFormatFlags.HidePrefix };
1234
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.
Top
| TextFormatFlags.HidePrefix };
1235
yield return new object[] { ContentAlignment.TopRight, RightToLeft.Yes, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.
Top
| TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1236
yield return new object[] { ContentAlignment.TopRight, RightToLeft.Inherit, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.
Top
| TextFormatFlags.HidePrefix };
1237
yield return new object[] { ContentAlignment.TopRight, RightToLeft.No, ToolStripItemDisplayStyle.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.
Top
| TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (5)
12
yield return new object[] { new ToolStripButton(), null, Rectangle.Empty, Color.Empty, null, TextFormatFlags.
Top
- 1 };
13
yield return new object[] { new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.
Top
};
37
yield return new object[] { new ToolStripButton(), null, Rectangle.Empty, Color.Empty, null, ContentAlignment.TopLeft - 1, TextFormatFlags.Default | TextFormatFlags.
Top
| TextFormatFlags.HidePrefix };
66
Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.
Top
));
82
ToolStripItemTextRenderEventArgs e = new(graphics, new ToolStripButton(), "", new Rectangle(1, 2, 3, 4), Color.Blue, SystemFonts.DefaultFont, TextFormatFlags.
Top
)