51 references to Inflate
System.Windows.Forms (39)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (3)
276
layout.Face = Rectangle.
Inflate
(layout.Client, -fullBorderSize, -fullBorderSize);
378
Rectangle field = Rectangle.
Inflate
(layout.Face, -PaddingSize, -PaddingSize);
498
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\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (4)
41
return Rectangle.
Inflate
(bounds, -3, -3);
46
Rectangle focus = Rectangle.
Inflate
(contentBounds, FocusIndicatorInflate, FocusIndicatorInflate);
96
Rectangle outer = Rectangle.
Inflate
(bounds, -1, -1);
103
Rectangle inner = Rectangle.
Inflate
(outer, -1, -1);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernButtonDarkModeRenderer.cs (1)
130
return Rectangle.
Inflate
(bounds, -inset, -inset);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ModernFlatButtonRenderer.cs (2)
78
return Rectangle.
Inflate
(bounds, -inset, -inset);
84
Rectangle focusRectangle = Rectangle.
Inflate
(contentBounds, -inset, -inset);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (3)
55
Rectangle contentBounds = Rectangle.
Inflate
(
75
Rectangle focusBounds = Rectangle.
Inflate
(
185
Rectangle defaultBounds = Rectangle.
Inflate
(
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (1)
159
Rectangle borderRect = Rectangle.
Inflate
(bounds, -SystemStylePadding, -SystemStylePadding);
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)
887
ControlPaint.DrawFocusRectangle(g, Rectangle.
Inflate
(valBounds, -1, -1), Color.Empty, cellStyle.ForeColor);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
2206
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\Controls\TextBox\TextBoxBase.cs (1)
2836
? Rectangle.
Inflate
(clientBounds, -1, -1)
System\Windows\Forms\Rendering\Button\PopupButtonKeyCapRenderer.cs (9)
128
Rectangle contentBounds = Rectangle.
Inflate
(
256
InflateForGradient(Rectangle.
Inflate
(bowl, 1, 1)),
298
Rectangle focusRect = Rectangle.
Inflate
(metrics.KeyRect, -inset, -inset);
412
Rectangle backgroundBounds = Rectangle.
Inflate
(
486
Rectangle focusRect = Rectangle.
Inflate
(bounds, -(int)(3 * scale), -(int)(3 * scale));
511
contentBounds = Rectangle.
Inflate
(contentBounds, -inset, -inset);
651
Rectangle result = Rectangle.
Inflate
(rect, 1, 1);
779
Rectangle bowlRect = Rectangle.
Inflate
(keyRect, -bowlInset, -bowlInset);
783
bowlRect = Rectangle.
Inflate
(keyRect, -1, -1);
System\Windows\Forms\Rendering\CheckBox\AnimatedToggleSwitchRenderer.cs (1)
112
Rectangle focusBounds = Rectangle.
Inflate
(Control.ClientRectangle, -1, -1);
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));
1978
newRegion.Exclude(Rectangle.
Inflate
(frameRect, -frameWidth, -frameWidth));
1994
oldRegion.Exclude(Rectangle.
Inflate
(oldFrameRect, -frameWidth, -frameWidth));