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