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