57 references to Bounds
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
593
e.
Bounds
,
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (4)
496
Rectangle bounds = e.
Bounds
;
715
e.
Bounds
.Width > 2 * BORDER_SIZE && e.
Bounds
.Height > 2 * BORDER_SIZE)
718
Rectangle bounds = e.
Bounds
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2295
Rectangle drawBounds = e.
Bounds
;
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (3)
121
/// Fills the <see cref="
Bounds
"/> with the <see cref="BackColor"/>.
126
GraphicsInternal.FillRectangle(backBrush,
Bounds
);
137
ControlPaint.DrawFocusRectangle(GraphicsInternal,
Bounds
, ForeColor, BackColor);
System.Windows.Forms.Design (43)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (12)
572
Rectangle button = e.
Bounds
with { Width = w };
587
Rectangle res = e.
Bounds
with { X = e.
Bounds
.X + offset, Width = e.
Bounds
.Width - offset };
598
Rectangle baseVar = new(e.
Bounds
.X + offset, e.
Bounds
.Y + 1, PaintWidth, e.
Bounds
.Height - 3);
609
e.
Bounds
with { Width = w }, format);
617
e.
Bounds
with { X = e.
Bounds
.X + offset, Width = e.
Bounds
.Width - offset });
622
if (width > e.
Bounds
.Width && _listBox.HorizontalExtent < width)
System\Drawing\Design\ColorEditor.ColorUI.cs (8)
275
_editor.PaintValue(value, graphics, new Rectangle(die.
Bounds
.X + 2, die.
Bounds
.Y + 2, 22, die.
Bounds
.Height - 4));
276
graphics.DrawRectangle(SystemPens.WindowText, new Rectangle(die.
Bounds
.X + 2, die.
Bounds
.Y + 2, 22 - 1, die.
Bounds
.Height - 4 - 1));
278
graphics.DrawString(value.Name, font, foreBrush, die.
Bounds
.X + 26, die.
Bounds
.Y);
System\Drawing\Design\CursorEditor.CursorUI.cs (12)
69
e.Graphics.FillRectangle(SystemBrushes.Control, new Rectangle(e.
Bounds
.X + 2, e.
Bounds
.Y + 2, 32, e.
Bounds
.Height - 4));
70
e.Graphics.DrawRectangle(SystemPens.WindowText, new Rectangle(e.
Bounds
.X + 2, e.
Bounds
.Y + 2, 32 - 1, e.
Bounds
.Height - 4 - 1));
72
cursor.DrawStretched(e.Graphics, new Rectangle(e.
Bounds
.X + 2, e.
Bounds
.Y + 2, 32, e.
Bounds
.Height - 4));
73
e.Graphics.DrawString(text, font, brushText, e.
Bounds
.X + 36, e.
Bounds
.Y + (e.
Bounds
.Height - font.Height) / 2);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (11)
984
e.
Bounds
.X + OWNERDRAWITEMIMAGEBUFFER,
985
e.
Bounds
.Y + OWNERDRAWITEMIMAGEBUFFER,
989
Rectangle bounds = e.
Bounds
;
1006
Rectangle focusRectangle = new(bounds.X, e.
Bounds
.Y + 1, textWidth + OWNERDRAWHORIZONTALBUFFER, e.
Bounds
.Height - 2);
1021
e.Graphics.FillRectangle(backBrush, new Rectangle(focusRectangle.Right + 1, e.
Bounds
.Y, e.
Bounds
.Width - focusRectangle.Right - 1, e.
Bounds
.Height));
1025
e.Graphics.FillRectangle(backBrush, new Rectangle(bounds.X, e.
Bounds
.Y, e.
Bounds
.Width - bounds.X, e.
Bounds
.Height));
System.Windows.Forms.Tests (3)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
501
e.
Bounds
);
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
29
Assert.Equal(rect, e.
Bounds
);
55
Assert.Equal(rect, e.
Bounds
);
WinFormsControlsTest (2)
ComboBoxesWithScrollBars.cs (1)
142
e.
Bounds
);
ListBoxes.cs (1)
47
e.Font, customBrush, e.
Bounds
, StringFormat.GenericDefault);