30 references to Inflate
System.Windows.Forms (17)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (3)
261layout.Face = Rectangle.Inflate(layout.Client, -fullBorderSize, -fullBorderSize); 363Rectangle field = Rectangle.Inflate(layout.Face, -PaddingSize, -PaddingSize); 483Rectangle maxBounds = Rectangle.Inflate(layout.Field, -TextImageInset, -TextImageInset);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
336layout.Focus = Control.AutoSize ? Rectangle.Inflate(layout.CheckBounds, -2, -2) : layout.Field;
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (4)
111contentBounds = Rectangle.Inflate(bounds, -3, -3); 158contentBounds = Rectangle.Inflate(bounds, -3, -3); 188contentBounds = Rectangle.Inflate(bounds, -3, -3); 269contentBounds = Rectangle.Inflate(bounds, -3, -3);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
890ControlPaint.DrawFocusRectangle(g, Rectangle.Inflate(valBounds, -1, -1), Color.Empty, cellStyle.ForeColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
2209Rectangle textBounds = Rectangle.Inflate(valBounds, -2, -2);
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (1)
143Rectangle newBounds = Rectangle.Inflate(Bounds, -padding, 0);
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
113ControlPaint.DrawFocusRectangle(Graphics, Rectangle.Inflate(bounds, -1, -1), Item.ForeColor, Item.BackColor); 141Rectangle newBounds = Rectangle.Inflate(Bounds, -padding, 0);
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (4)
44Rectangle contentBounds = Rectangle.Inflate(bounds, -3, -3); 78Rectangle contentBounds = Rectangle.Inflate(bounds, -3, -3); 98Rectangle contentBounds = Rectangle.Inflate(bounds, -3, -3); 128Rectangle contentBounds = Rectangle.Inflate(bounds, -3, -3);
System.Windows.Forms.Design (12)
System\Drawing\Design\ColorEditor.ColorPalette.cs (5)
209Invalidate(Rectangle.Inflate(r, 5, 5)); 220Invalidate(Rectangle.Inflate(r, 5, 5)); 385Rectangle.Inflate(rect, 3, 3), 396Rectangle.Inflate(rect, 5, 5), 403Rectangle.Inflate(rect, 2, 2),
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
213pe.Graphics.FillRectangle(DesignerUtils.HoverBrush, Rectangle.Inflate(_bounds, -1, -1));
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
388newRegion.Exclude(Rectangle.Inflate(borderRect, -BorderSize, -BorderSize)); 854newRegion.Exclude(Rectangle.Inflate(newBorderRect, -BorderSize, -BorderSize)); 863oldRegion.Exclude(Rectangle.Inflate(oldBorderRect, -BorderSize, -BorderSize));
System\Windows\Forms\Design\ParentControlDesigner.cs (3)
1792newRegion.Exclude(Rectangle.Inflate(frameRect, -frameWidth, -frameWidth)); 1984newRegion.Exclude(Rectangle.Inflate(frameRect, -frameWidth, -frameWidth)); 2000oldRegion.Exclude(Rectangle.Inflate(oldFrameRect, -frameWidth, -frameWidth));
System.Windows.Forms.Tests (1)
System\Windows\Forms\CursorTests.cs (1)
214Cursor.Clip = Rectangle.Inflate(virtualScreen, 10, 10);