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