68 references to Bounds
PresentationUI (1)
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
604e.Bounds,
System.Windows.Forms (8)
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (4)
496Rectangle bounds = e.Bounds; 717e.Bounds.Width > 2 * BORDER_SIZE && e.Bounds.Height > 2 * BORDER_SIZE) 720Rectangle bounds = e.Bounds;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
2318Rectangle 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 (54)
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)
73e.Graphics.FillRectangle(SystemBrushes.Control, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, cursorWidth, e.Bounds.Height - 4)); 74e.Graphics.DrawRectangle(SystemPens.WindowText, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, cursorWidth - 1, e.Bounds.Height - 4 - 1)); 76cursor.DrawStretched(e.Graphics, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, cursorWidth, e.Bounds.Height - 4)); 77e.Graphics.DrawString(text, font, brushText, e.Bounds.X + cursorWidth + 4, e.Bounds.Y + (e.Bounds.Height - font.Height) / 2);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (11)
981e.Bounds.X + OWNERDRAWITEMIMAGEBUFFER, 982e.Bounds.Y + OWNERDRAWITEMIMAGEBUFFER, 986Rectangle bounds = e.Bounds; 1003Rectangle focusRectangle = new(bounds.X, e.Bounds.Y + 1, textWidth + OWNERDRAWHORIZONTALBUFFER, e.Bounds.Height - 2); 1018e.Graphics.FillRectangle(backBrush, new Rectangle(focusRectangle.Right + 1, e.Bounds.Y, e.Bounds.Width - focusRectangle.Right - 1, e.Bounds.Height)); 1022e.Graphics.FillRectangle(backBrush, new Rectangle(bounds.X, e.Bounds.Y, e.Bounds.Width - bounds.X, e.Bounds.Height));
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (11)
701e.Graphics.DrawLine(SystemPens.ControlDark, e.Bounds.X + 2, e.Bounds.Y + 2, e.Bounds.Right - 2, e.Bounds.Y + 2); 707Rectangle imageBounds = e.Bounds; 725imageBounds.Intersect(e.Bounds); 735e.Graphics.DrawImage(tbxBitmap, e.Bounds.X, e.Bounds.Y, s_iconWidth, s_iconHeight); 745Rectangle textBounds = e.Bounds; 753textBounds.Intersect(e.Bounds); 756Rectangle fillBounds = e.Bounds;
System.Windows.Forms.Tests (3)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
503e.Bounds);
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
31Assert.Equal(rect, e.Bounds); 57Assert.Equal(rect, e.Bounds);
WinFormsControlsTest (2)
ComboBoxesWithScrollBars.cs (1)
142e.Bounds);
ListBoxes.cs (1)
50e.Font, customBrush, e.Bounds, StringFormat.GenericDefault);