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