3 types derived from PaintEventArgs
System.Windows.Forms (2)
System\Windows\Forms\Control.PrintPaintEventArgs.cs (1)
10private sealed class PrintPaintEventArgs : PaintEventArgs
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutCellPaintEventArgs.cs (1)
12public class TableLayoutCellPaintEventArgs : PaintEventArgs
System.Windows.Forms.Tests (1)
System\Windows\Forms\PaintEventArgsTests.cs (1)
69private class SubPaintEventArgs : PaintEventArgs
68 instantiations of PaintEventArgs
System.Windows.Forms (7)
System\Windows\Forms\Control.cs (2)
11780pevent = new PaintEventArgs( 11788pevent = new PaintEventArgs(
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
52using (PaintEventArgs e = new(screen, default))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (1)
31using (PaintEventArgs pe = new(screen, clipRect: default))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (1)
99using (PaintEventArgs pe = new(screen, clipRect: default))
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
1377using PaintEventArgs e = new(g, ClientRectangle);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
3564using (PaintEventArgs itemPaintEventArgs = new(itemGraphics, clippingRect))
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
310using PaintEventArgs pevent = new(g, paintRect);
System\Windows\Forms\Design\ControlDesigner.cs (2)
2029using PaintEventArgs e = new(g, Control.ClientRectangle); 2077using PaintEventArgs pevent = new(graphics, paintRect);
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\ByteViewerTests.cs (4)
427using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 468using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 513using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 543using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System.Windows.Forms.Tests (52)
System\Windows\Forms\ComboBoxTests.cs (4)
360comboBox.TestAccessor().Dynamic.OnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 373comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 377comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 390comboBox.InvokeOnPaint(new PaintEventArgs(graphics, new Rectangle(0, 0, 100, 100)));
System\Windows\Forms\ControlTests.Handlers.cs (9)
3856using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 3978using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4028using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4105using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4638using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4657using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4696using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4725using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4761using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\ControlTests.Methods.cs (3)
4297using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4306using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4353using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\DateTimePickerTests.cs (2)
546control.OnPaint(new(Graphics.FromImage(bmp), default)); 554control.OnPaint(new(Graphics.FromImage(bmp), default));
System\Windows\Forms\GroupBoxTests.cs (2)
1851using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 1889using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\PaintEventArgsTests.cs (3)
25using PaintEventArgs e = new(graphics, clipRect); 33Assert.Throws<ArgumentNullException>("graphics", () => new PaintEventArgs((Graphics)null, new Rectangle(1, 2, 3, 4))); 41PaintEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\ScrollableControlTests.cs (4)
1532using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1679using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1731using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1819using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\StatusStripTests.cs (1)
1212using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\TableLayoutPanelTests.cs (2)
1431using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1471using PaintEventArgs eventArgs = new(graphics, new Rectangle(15, 2, 5, 20));
System\Windows\Forms\TabPageTests.cs (4)
3978using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4048using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4104using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4187using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\ToolStripButtonTests.cs (3)
1266using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1357using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1450yield return new object[] { displayStyle, new PaintEventArgs(graphics, new Rectangle(1, 2, 3, 4)) };
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1855using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4110using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\ToolStripSeparatorTests.cs (3)
1119yield return new object[] { layoutStyle, new PaintEventArgs(graphics, new Rectangle(1, 2, 3, 4)) }; 1213using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1284using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\ToolStripTests.cs (6)
5873using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6020using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6071using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6158using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6233using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 6262using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\UpDownBaseTests.cs (2)
2247using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 2283using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
TrackBarTests.cs (2)
3258using (var eventArgs = new PaintEventArgs(graphics, rectangle)) 3267using (var eventArgs = new PaintEventArgs(graphics, rectangle))
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
116new(graphics, Rectangle.Empty)
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
186using (PaintEventArgs args = new PaintEventArgs(g, control.ClientRectangle))
321 references to PaintEventArgs
DesignSurface (1)
MainForm.MyScrollableControl.cs (1)
31protected override void OnPaint(PaintEventArgs e)
PresentationUI (1)
MS\Internal\Documents\DialogDivider.cs (1)
74protected override void OnPaint(PaintEventArgs e)
System.Windows.Forms (149)
System\Windows\Forms\Control.cs (18)
1103/// prevents us from sending a ton of messages during layout. See the <see cref="PaintWithErrorHandling(PaintEventArgs, short)"/> 6131protected void InvokePaint(Control c, PaintEventArgs e) 6136protected void InvokePaintBackground(Control c, PaintEventArgs e) 7044protected virtual void OnPrint(PaintEventArgs e) 7844protected virtual void OnPaint(PaintEventArgs e) 7864protected virtual void OnPaintBackground(PaintEventArgs pevent) 8038internal void PaintBackground(PaintEventArgs e, Rectangle rectangle) => 8041internal void PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset = default) 8092private static void PaintBackColor(PaintEventArgs e, Rectangle rectangle, Color backColor) 8118private void PaintException(PaintEventArgs e) 8144/// <see cref="OnPaintBackground(PaintEventArgs)"/>. 8151internal unsafe void PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle, Region? transparentRegion = null) 8205using PaintEventArgs newArgs = new(hdc, newClipRect); 8224private void PaintWithErrorHandling(PaintEventArgs e, short layer) 9009protected void RaisePaintEvent(object key, PaintEventArgs e) 11148using PaintEventArgs pevent = new(dc, rc); 11726PaintEventArgs? pevent = null; 11821using PaintEventArgs e = new PrintPaintEventArgs(m, hdc, ClientRectangle);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
934private void PaintControl(PaintEventArgs pevent) 1178protected override void OnPaint(PaintEventArgs pevent)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (11)
32internal void Paint(PaintEventArgs e) 52using (PaintEventArgs e = new(screen, default)) 60protected abstract LayoutOptions Layout(PaintEventArgs e); 62internal abstract void PaintUp(PaintEventArgs e, CheckState state); 64internal abstract void PaintDown(PaintEventArgs e, CheckState state); 66internal abstract void PaintOver(PaintEventArgs e, CheckState state); 323PaintEventArgs e, 451private void DrawText(PaintEventArgs e, LayoutData layout, Color color, ColorData colors) 514internal void PaintButtonBackground(PaintEventArgs e, Rectangle bounds, Brush? background) 527PaintEventArgs e, 546internal void PaintImage(PaintEventArgs e, LayoutData layout)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonFlatAdapter.cs (5)
14private void PaintBackground(PaintEventArgs e, Rectangle r, Color backColor) 21internal override void PaintUp(PaintEventArgs e, CheckState state) 114internal override void PaintDown(PaintEventArgs e, CheckState state) 202internal override void PaintOver(PaintEventArgs e, CheckState state) 292protected override LayoutOptions Layout(PaintEventArgs e) =>
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (4)
13internal override void PaintUp(PaintEventArgs e, CheckState state) 59internal override void PaintOver(PaintEventArgs e, CheckState state) 117internal override void PaintDown(PaintEventArgs e, CheckState state) 139protected override LayoutOptions Layout(PaintEventArgs e)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonStandardAdapter.cs (6)
40internal override void PaintUp(PaintEventArgs e, CheckState state) => PaintWorker(e, up: true, state); 42internal override void PaintDown(PaintEventArgs e, CheckState state) => PaintWorker(e, up: false, state); 44internal override void PaintOver(PaintEventArgs e, CheckState state) => PaintUp(e, state); 46private void PaintThemedButtonBackground(PaintEventArgs e, Rectangle bounds, bool up) 106private void PaintWorker(PaintEventArgs e, bool up, CheckState state) 207protected override LayoutOptions Layout(PaintEventArgs e)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckableControlBaseAdapter.cs (1)
31using (PaintEventArgs pe = new(screen, clipRect: default))
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (5)
29PaintEventArgs e, 118PaintEventArgs e, 136protected void DrawCheckOnly(PaintEventArgs e, LayoutData layout, ColorData colors, Color checkColor) => 207internal static Rectangle DrawPopupBorder(PaintEventArgs e, Rectangle r, ColorData colors) 258protected void DrawCheckBox(PaintEventArgs e, LayoutData layout)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxFlatAdapter.cs (5)
14internal override void PaintDown(PaintEventArgs e, CheckState state) 33internal override void PaintOver(PaintEventArgs e, CheckState state) 52internal override void PaintUp(PaintEventArgs e, CheckState state) 71private void PaintFlatWorker(PaintEventArgs e, Color checkColor, Color checkBackground, Color checkBorder, ColorData colors) 93protected override LayoutOptions Layout(PaintEventArgs e)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxPopupAdapter.cs (4)
15internal override void PaintUp(PaintEventArgs e, CheckState state) 50internal override void PaintOver(PaintEventArgs e, CheckState state) 93internal override void PaintDown(PaintEventArgs e, CheckState state) 120protected override LayoutOptions Layout(PaintEventArgs e)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxStandardAdapter.cs (5)
15internal override void PaintUp(PaintEventArgs e, CheckState state) 64internal override void PaintDown(PaintEventArgs e, CheckState state) 76internal override void PaintOver(PaintEventArgs e, CheckState state) 99using (PaintEventArgs pe = new(screen, clipRect: default)) 112protected override LayoutOptions Layout(PaintEventArgs e)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (5)
15PaintEventArgs e, 26PaintEventArgs e, 58protected void DrawCheckBackgroundFlat(PaintEventArgs e, Rectangle bounds, Color borderColor, Color checkBackground) 133protected void DrawCheckOnly(PaintEventArgs e, LayoutData layout, Color checkColor, bool disabledColors) 194protected void DrawCheckBox(PaintEventArgs e, LayoutData layout)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonFlatAdapter.cs (5)
14internal override void PaintDown(PaintEventArgs e, CheckState state) 34internal override void PaintOver(PaintEventArgs e, CheckState state) 54internal override void PaintUp(PaintEventArgs e, CheckState state) 74private void PaintFlatWorker(PaintEventArgs e, Color checkColor, Color checkBackground, Color checkBorder, ColorData colors) 88protected override LayoutOptions Layout(PaintEventArgs e)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonPopupAdapter.cs (4)
12internal override void PaintUp(PaintEventArgs e, CheckState state) 41internal override void PaintOver(PaintEventArgs e, CheckState state) 66internal override void PaintDown(PaintEventArgs e, CheckState state) 92protected override LayoutOptions Layout(PaintEventArgs e)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonStandardAdapter.cs (4)
10internal override void PaintUp(PaintEventArgs e, CheckState state) 29internal override void PaintDown(PaintEventArgs e, CheckState state) 41internal override void PaintOver(PaintEventArgs e, CheckState state) 57protected override LayoutOptions Layout(PaintEventArgs e)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16648protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
396protected override void OnPaint(PaintEventArgs e) 457private void DrawGroupBox(PaintEventArgs e)
System\Windows\Forms\Controls\Labels\Label.cs (2)
966private void DrawImage(PaintEventArgs e, Image image, Rectangle r, ContentAlignment align) 1249protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\Labels\LinkLabel.cs (4)
966protected override void OnPaint(PaintEventArgs e) 1148protected override void OnPaintBackground(PaintEventArgs e) 1223PaintEventArgs e, 1377using PaintEventArgs e = new(g, ClientRectangle);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
1106protected override void OnPaint(PaintEventArgs pe)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2891protected override void OnPaint(PaintEventArgs pevent)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
37protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
67protected override void OnPaint(PaintEventArgs pevent)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
16private void DDB_Draw3DBorder(PaintEventArgs e, Rectangle r, bool raised) 66internal override void PaintUp(PaintEventArgs pevent, CheckState state)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
3254protected override void OnPaintBackground(PaintEventArgs pevent) 3258protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
504protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (1)
67protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
593protected override void OnPaintBackground(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
322protected override void OnPaintBackground(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (5)
3446protected override void OnPaint(PaintEventArgs e) 3564using (PaintEventArgs itemPaintEventArgs = new(itemGraphics, clippingRect)) 3634protected override void OnPaintBackground(PaintEventArgs e) 3671private void EraseCorners(PaintEventArgs e, Region transparentRegion) 3679protected internal virtual void OnPaintGrip(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (1)
200protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanel.cs (1)
316protected override void OnPaintBackground(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
554private void HandlePaint(object? sender, PaintEventArgs e) 670protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
177protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
563protected override void OnPaintBackground(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
109protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
2243HandlePaint((PaintEventArgs)e); 2449private void HandlePaint(PaintEventArgs e) 2882protected virtual void OnPaint(PaintEventArgs e) 3087internal void RaisePaintEvent(object key, PaintEventArgs e) => ((PaintEventHandler?)Events[key])?.Invoke(this, e);
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
332protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
944protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
109protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
435protected override void OnPaintBackground(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (2)
75protected override void OnPaint(PaintEventArgs e) 79protected override void OnPaintBackground(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
288protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
511protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
192protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
514protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
257protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Form.cs (1)
4398protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1211protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutCellPaintEventArgs.cs (1)
28PaintEventArgs e,
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
330protected override void OnPaintBackground(PaintEventArgs e)
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
340protected override void OnPaintBackground(PaintEventArgs e) => PaintTransparentBackground(e, ClientRectangle); 342protected override void OnPaint(PaintEventArgs pevent) 699private void PaintResizeBox(PaintEventArgs e) 709private void PaintFocus(PaintEventArgs e, bool isHighContrast)
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1139private void OnCloseToolStripButtonPaint(object? sender, PaintEventArgs e)
System\Windows\Forms\Rendering\DrawingEventFlags.cs (2)
17/// Only used in <see cref="PaintEventArgs"/>. Saves the state of the <see cref="Graphics"/> at construction 18/// so it can be restored via <see cref="PaintEventArgs.ResetGraphics"/>.
System\Windows\Forms\Rendering\PaintEventArgs.cs (2)
46PaintEventArgs e, 88/// Disposes of the resources (other than memory) used by the <see cref="PaintEventArgs"/>.
System\Windows\Forms\Rendering\PaintEventHandler.cs (1)
9public delegate void PaintEventHandler(object? sender, PaintEventArgs e);
System\Windows\Forms\Rendering\TextRenderer.cs (2)
313PaintEventArgs e, 322PaintEventArgs e,
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
662protected override void OnPaintBackground(PaintEventArgs e)
System.Windows.Forms.Design (50)
System\ComponentModel\Design\ByteViewer.cs (1)
515protected override void OnPaint(PaintEventArgs e)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
186protected override void OnPaint(PaintEventArgs pevent)
System\ComponentModel\Design\DesignerActionPanel.cs (1)
466protected override void OnPaint(PaintEventArgs e)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
55protected override void OnPaint(PaintEventArgs e)
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
357protected override void OnPaint(PaintEventArgs pe)
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (3)
182protected override void OnPaint(PaintEventArgs e) 198protected override void OnPaint(PaintEventArgs e) 264protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
310using PaintEventArgs pevent = new(g, paintRect);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
733private void PropagatePaint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\ComponentGlyph.cs (1)
47public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\ContainerSelectorGlyph.cs (1)
45public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
186public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\Glyph.cs (1)
55public abstract void Paint(PaintEventArgs pe);
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (1)
111public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\LockedBorderGlyph.cs (1)
40public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\LockedHandleGlyph.cs (1)
35public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\MiniLockedBorderGlyph.cs (1)
51public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\NoResizeHandleGlyph.cs (1)
45public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (1)
63public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (1)
87public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\SelectionGlyphBase.cs (1)
66public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\TableLayoutPanelResizeGlyph.cs (1)
61public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (1)
219public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\ComponentTray.cs (3)
1391protected override void OnPaint(PaintEventArgs pe) 2265protected override void OnPaint(PaintEventArgs e) 2743public void OnPaintGlyphs(PaintEventArgs pe)
System\Windows\Forms\Design\ControlDesigner.cs (4)
1538protected virtual void OnPaintAdornments(PaintEventArgs pe) 2029using PaintEventArgs e = new(g, Control.ClientRectangle); 2077using PaintEventArgs pevent = new(graphics, paintRect); 2229private void PaintException(PaintEventArgs e, Exception ex)
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1853protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Design\DockEditor.DockUI.cs (1)
299protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
73protected override void OnPaintAdornments(PaintEventArgs pe)
System\Windows\Forms\Design\PanelDesigner.cs (1)
51protected override void OnPaintAdornments(PaintEventArgs pe)
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
2022protected override void OnPaintAdornments(PaintEventArgs pe)
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
65protected override void OnPaintAdornments(PaintEventArgs pe)
System\Windows\Forms\Design\SelectionUIService.cs (1)
764protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
259protected override void OnPaintAdornments(PaintEventArgs pe)
System\Windows\Forms\Design\SplitterDesigner.cs (1)
42protected override void OnPaintAdornments(PaintEventArgs pe)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
197protected override void OnPaintAdornments(PaintEventArgs pe)
System\Windows\Forms\Design\TabControlDesigner.cs (1)
372protected override void OnPaintAdornments(PaintEventArgs pe)
System\Windows\Forms\Design\TabOrder.cs (1)
651protected override void OnPaint(PaintEventArgs e)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
405protected override void OnPaintAdornments(PaintEventArgs pe)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
2048private void OnOverFlowDropDownPaint(object sender, PaintEventArgs e)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
915private void OnItemPaint(object sender, PaintEventArgs e)
System\Windows\Forms\Design\ToolStripItemGlyph.cs (1)
42public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (2)
1073private void DropDownPaint(object sender, PaintEventArgs e) 2634public override void Paint(PaintEventArgs pe)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
467protected override void OnPaintAdornments(PaintEventArgs paintEvent)
System.Windows.Forms.Design.Tests (5)
System\ComponentModel\Design\ByteViewerTests.cs (5)
427using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 468using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 513using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 543using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 1090public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System.Windows.Forms.Tests (106)
System\Windows\Forms\ButtonBaseTests.cs (1)
9365public new void OnPaint(PaintEventArgs pevent) => base.OnPaint(pevent);
System\Windows\Forms\ComboBoxTests.cs (1)
348public void InvokeOnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\ControlTests.cs (5)
1226public new void InvokePaint(Control c, PaintEventArgs e) => base.InvokePaint(c, e); 1228public new void InvokePaintBackground(Control c, PaintEventArgs e) => base.InvokePaintBackground(c, e); 1342public new void OnPaint(PaintEventArgs e) => base.OnPaint(e); 1344public new void OnPaintBackground(PaintEventArgs e) => base.OnPaintBackground(e); 1364public new void OnPrint(PaintEventArgs e) => base.OnPrint(e);
System\Windows\Forms\ControlTests.Handlers.cs (10)
3812public void Control_OnPaint_Invoke_CallsPaint(PaintEventArgs eventArgs) 3856using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 3978using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4028using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4105using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4638using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4657using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4696using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4725using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 4761using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty);
System\Windows\Forms\ControlTests.Methods.cs (4)
4262public void Control_InvokePaint_Invoke_CallsPaint(PaintEventArgs eventArgs) 4297using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4306using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4353using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4));
System\Windows\Forms\DateTimePickerTests.cs (1)
1072public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\GroupBoxTests.cs (3)
1851using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 1889using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 2383public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\ListBoxTests.cs (2)
5695public void ListBox_OnPaint_Invoke_CallsPaint(PaintEventArgs eventArgs) 6492public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\MonthCalendarTests.cs (2)
3759public void MonthCalendar_OnPaint_Invoke_CallsPaint(PaintEventArgs eventArgs) 4812public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\PaintEventArgsTests.cs (3)
25using PaintEventArgs e = new(graphics, clipRect); 41PaintEventArgs e = new(graphics, new Rectangle(1, 2, 3, 4)); 63using PaintEventArgs args = new(hdc, default);
System\Windows\Forms\PictureBoxTests.cs (10)
2459public void PictureBox_OnPaint_Invoke_CallsPaint(PaintEventArgs eventArgs) 2483foreach (PaintEventArgs testData in CommonTestHelperEx.GetPaintEventArgsTheoryData()) 2494public void PictureBox_OnPaint_InvokeWithValidImage_CallsLoad(PictureBoxSizeMode sizeMode, PaintEventArgs eventArgs) 2510public void PictureBox_OnPaint_InvokeWithValidImageLocationWaitOnLoadTrue_CallsLoad(PictureBoxSizeMode sizeMode, PaintEventArgs eventArgs) 2528foreach (PaintEventArgs testData in CommonTestHelperEx.GetPaintEventArgsTheoryData()) 2537public void PictureBox_OnPaint_InvokeWithNullOrEmptyImageLocationWaitOnLoadTrue_CallsLoad(string imageLocation, PaintEventArgs eventArgs) 2554foreach (PaintEventArgs testData in CommonTestHelperEx.GetPaintEventArgsTheoryData()) 2566public void PictureBox_OnPaint_InvokeWithInvalidImageLocationWaitOnLoadTrue_CallsLoad(PictureBoxSizeMode sizeMode, string imageLocation, PaintEventArgs eventArgs) 2584public void PictureBox_OnPaint_InvokeWithImage_CallsPaint(PaintEventArgs eventArgs) 2918public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\ProgressBarTests.cs (2)
2346public void ProgressBar_OnPaint_Invoke_CallsPaint(PaintEventArgs eventArgs) 2670public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\ScrollableControlTests.cs (5)
1532using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1679using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1731using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1819using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 2650public new void OnPaintBackground(PaintEventArgs e) => base.OnPaintBackground(e);
System\Windows\Forms\ScrollBarTests.cs (2)
2498public void ScrollBar_OnPaint_Invoke_CallsPaint(PaintEventArgs eventArgs) 3240public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\StatusStripTests.cs (2)
1212using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1360public new void OnPaintBackground(PaintEventArgs e) => base.OnPaintBackground(e);
System\Windows\Forms\TableLayoutPanelTests.cs (3)
1431using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1471using PaintEventArgs eventArgs = new(graphics, new Rectangle(15, 2, 5, 20)); 2253public new void OnPaintBackground(PaintEventArgs e) => base.OnPaintBackground(e);
System\Windows\Forms\TabPageTests.cs (5)
3978using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4048using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4104using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4187using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 5317public new void OnPaintBackground(PaintEventArgs e) => base.OnPaintBackground(e);
System\Windows\Forms\ToolStripButtonTests.cs (6)
1201public void ToolStripButton_OnPaint_Invoke_DoesNotCallPaint(PaintEventArgs eventArgs) 1266using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1357using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1456public void ToolStripButton_OnPaint_InvokeWithParent_DoesNotCallPaint(ToolStripItemDisplayStyle displayStyle, PaintEventArgs eventArgs) 1691public new void OnPaint(PaintEventArgs e) => base.OnPaint(e); 1754public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
29using PaintEventArgs e = new(emf, bounds); 52using PaintEventArgs e = new(emf, bounds); 77using PaintEventArgs e = new(emf, bounds); 103using PaintEventArgs e = new(emf, bounds); 129using PaintEventArgs e = new(emf, bounds); 156using PaintEventArgs e = new(emf, bounds);
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
1855using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 2092public new void OnPaintBackground(PaintEventArgs e) => base.OnPaintBackground(e);
System\Windows\Forms\ToolStripControlHostTests.cs (5)
3010public void ToolStripControlHost_OnPaint_Invoke_DoesNotCallPaint(PaintEventArgs eventArgs) 3776public void ToolStripControlHost_OnSubscribeControlEvents_InvokePaint_Success(PaintEventArgs eventArgs) 4110using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 4612public new void OnPaint(PaintEventArgs e) => base.OnPaint(e); 4689public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\ToolStripItemTests.cs (2)
12489public void ToolStripItem_OnPaint_Invoke_DoesNotCallPaint(PaintEventArgs eventArgs) 15598public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\ToolStripSeparatorTests.cs (6)
1089public void ToolStripSeparator_OnPaint_Invoke_DoesNotCallPaint(PaintEventArgs eventArgs) 1125public void ToolStripSeparator_OnPaint_InvokeWithOwner_DoesNotCallPaint(PaintEventArgs eventArgs) 1161public void ToolStripSeparator_OnPaint_InvokeWithParent_DoesNotCallPaint(PaintEventArgs eventArgs) 1213using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1284using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 1661public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System\Windows\Forms\ToolStripTests.cs (9)
5873using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6020using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6071using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6158using PaintEventArgs eventArgs = new(graphics, new Rectangle(1, 2, 3, 4)); 6233using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 6262using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 7662public new void OnPaint(PaintEventArgs e) => base.OnPaint(e); 7664public new void OnPaintBackground(PaintEventArgs e) => base.OnPaintBackground(e); 7666public new void OnPaintGrip(PaintEventArgs e) => base.OnPaintGrip(e);
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
30using PaintEventArgs e = new(emf, bounds);
System\Windows\Forms\UpDownBaseTests.cs (3)
2247using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 2283using PaintEventArgs eventArgs = new(graphics, Rectangle.Empty); 3212public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
TextBoxBaseTests.cs (2)
5730public void TextBoxBase_OnPaint_Invoke_CallsPaint(PaintEventArgs eventArgs) 7769public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
TrackBarTests.cs (3)
3258using (var eventArgs = new PaintEventArgs(graphics, rectangle)) 3267using (var eventArgs = new PaintEventArgs(graphics, rectangle)) 3358public new void OnPaint(PaintEventArgs e) => base.OnPaint(e);
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
109public static TheoryData<PaintEventArgs> GetPaintEventArgsTheoryData() 113return new TheoryData<PaintEventArgs>
System.Windows.Forms.UI.IntegrationTests (1)
DesignBehaviorsTests.cs (1)
321protected override void OnPaintAdornments(PaintEventArgs pe)
WindowsFormsIntegration (6)
System\Windows\Integration\ElementHost.cs (4)
384protected override void OnPaint(SWF.PaintEventArgs e) 395protected override void OnPaintBackground(SWF.PaintEventArgs pevent) 401internal void InvokePaintBackgroundAndPaint(SWF.Control control, SWF.PaintEventArgs args) 414protected override void OnPrint(PaintEventArgs e)
System\Windows\Integration\HostUtils.cs (1)
186using (PaintEventArgs args = new PaintEventArgs(g, control.ClientRectangle))
System\Windows\Integration\WindowsFormsHost.cs (1)
1064protected override void OnPaintBackground(SWF.PaintEventArgs e)