2 types derived from PaintEventArgs
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Control.cs (1)
20328private sealed class PrintPaintEventArgs : PaintEventArgs {
winforms\Managed\System\WinForms\TableLayoutCellPaintEventArgs.cs (1)
22public class TableLayoutCellPaintEventArgs : PaintEventArgs {
16 instantiations of PaintEventArgs
System.Windows.Forms (8)
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (1)
57using (PaintEventArgs pe = new PaintEventArgs(measurementGraphics, new Rectangle())) {
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (1)
40using (PaintEventArgs pe = new PaintEventArgs(measurementGraphics, new Rectangle())) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (1)
85using (PaintEventArgs pe = new PaintEventArgs(measurementGraphics, new Rectangle())) {
winforms\Managed\System\WinForms\Control.cs (3)
12966using (PaintEventArgs pevent = new PaintEventArgs(dc, Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom))) { 13734pevent = new PaintEventArgs(bufferedGraphics.Graphics, clip); 13738pevent = new PaintEventArgs(dc, clip);
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1505using (PaintEventArgs e = new PaintEventArgs(g, ClientRectangle)) {
winforms\Managed\System\WinForms\ToolStrip.cs (1)
3721using (PaintEventArgs itemPaintEventArgs = new PaintEventArgs(itemGraphics, clippingRect)) {
System.Workflow.ComponentModel (7)
AuthoringOM\Design\CompositeActivityDesigner.cs (1)
1467using (PaintEventArgs paintEventArgs = new PaintEventArgs(e.Graphics, e.ViewPort))
AuthoringOM\Design\DesignerWidgets.cs (1)
3483using (PaintEventArgs paintEventArgs = new PaintEventArgs(graphics, previewDesignerViewPort))
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
675using (PaintEventArgs paintEventArgs = new PaintEventArgs(e.Graphics, e.ViewPort))
AuthoringOM\Design\WorkflowPrinting.cs (1)
163using (PaintEventArgs paintEventArgs = new PaintEventArgs(graphics, this.workflowView.RootDesigner.Bounds))
AuthoringOM\Design\WorkflowView.cs (3)
1566using (PaintEventArgs eventArgs = new PaintEventArgs(viewPortGraphics, viewPortData.LogicalViewPort)) 1612using (PaintEventArgs paintEventArgs = new PaintEventArgs(viewPortGraphics, viewPortData.LogicalViewPort)) 1628using (PaintEventArgs paintArgs = new PaintEventArgs(viewPortGraphics, workflowView.RootDesigner.Bounds))
System.WorkflowServices (1)
System\Workflow\ComponentModel\Design\DesignerPainter.cs (1)
126sink.OnPaint(new PaintEventArgs(eventArgs.Graphics, eventArgs.ClipRectangle), eventArgs.ClipRectangle);
181 references to PaintEventArgs
System.Web.Mobile (1)
UI\MobileControls\Design\Util\GroupLabel.cs (1)
33protected override void OnPaint(PaintEventArgs e)
System.Windows.Forms (140)
winforms\Managed\System\WinForms\ButtonBase.cs (2)
941private void PaintControl(PaintEventArgs pevent) { 1130protected override void OnPaint(PaintEventArgs pevent) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonBaseAdapter.cs (9)
42internal void Paint(PaintEventArgs pevent) { 57using (PaintEventArgs pe = new PaintEventArgs(measurementGraphics, new Rectangle())) { 64protected abstract LayoutOptions Layout(PaintEventArgs e); 66internal abstract void PaintUp(PaintEventArgs e, CheckState state); 68internal abstract void PaintDown(PaintEventArgs e, CheckState state); 70internal abstract void PaintOver(PaintEventArgs e, CheckState state); 688internal void PaintButtonBackground(PaintEventArgs e, Rectangle bounds, Brush background) { 697internal void PaintField(PaintEventArgs e, 714internal void PaintImage(PaintEventArgs e, LayoutData layout) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonFlatAdapter.cs (6)
25private void PaintBackground(PaintEventArgs e, Rectangle r, Color backColor) { 31internal override void PaintUp(PaintEventArgs e, CheckState state) { 113internal override void PaintDown(PaintEventArgs e, CheckState state) { 187internal override void PaintOver(PaintEventArgs e, CheckState state) { 271protected override LayoutOptions Layout(PaintEventArgs e) { 302private LayoutOptions PaintFlatLayout(PaintEventArgs e, bool up, bool check, int borderSize) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonPopupAdapter.cs (5)
24internal override void PaintUp(PaintEventArgs e, CheckState state) { 63internal override void PaintOver(PaintEventArgs e, CheckState state) { 124internal override void PaintDown(PaintEventArgs e, CheckState state) { 148protected override LayoutOptions Layout(PaintEventArgs e) { 177private LayoutOptions PaintPopupLayout(PaintEventArgs e, bool up, int paintedBorder) {
winforms\Managed\System\WinForms\ButtonInternal\ButtonStandardAdapter.cs (7)
50internal override void PaintUp(PaintEventArgs e, CheckState state) { 54internal override void PaintDown(PaintEventArgs e, CheckState state) { 58internal override void PaintOver(PaintEventArgs e, CheckState state) { 62private void PaintThemedButtonBackground(PaintEventArgs e, Rectangle bounds, bool up) { 131void PaintWorker(PaintEventArgs e, bool up, CheckState state) { 223protected override LayoutOptions Layout(PaintEventArgs e) { 231private LayoutOptions PaintLayout(PaintEventArgs e, bool up) {
winforms\Managed\System\WinForms\ButtonInternal\CheckableControlBaseAdapter.cs (1)
40using (PaintEventArgs pe = new PaintEventArgs(measurementGraphics, new Rectangle())) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxBaseAdapter.cs (4)
43protected void DrawCheckFlat(PaintEventArgs e, LayoutData layout, Color checkColor, Color checkBackground, Color checkBorder, ColorData colors) { 115protected void DrawCheckBackground(PaintEventArgs e, Rectangle bounds, Color checkColor, Color checkBackground, bool disabledColors, ColorData colors) { 126protected void DrawCheckOnly(PaintEventArgs e, LayoutData layout, ColorData colors, Color checkColor, Color checkBackground) { 215protected void DrawCheckBox(PaintEventArgs e, LayoutData layout) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxFlatAdapter.cs (5)
20internal override void PaintDown(PaintEventArgs e, CheckState state) { 35internal override void PaintOver(PaintEventArgs e, CheckState state) { 50internal override void PaintUp(PaintEventArgs e, CheckState state) { 65private void PaintFlatWorker(PaintEventArgs e, Color checkColor, Color checkBackground, Color checkBorder, ColorData colors) { 88protected override LayoutOptions Layout(PaintEventArgs e) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxPopupAdapter.cs (5)
23internal override void PaintUp(PaintEventArgs e, CheckState state) { 48internal override void PaintOver(PaintEventArgs e, CheckState state) { 77internal override void PaintDown(PaintEventArgs e, CheckState state) { 107protected override LayoutOptions Layout(PaintEventArgs e) { 134private LayoutOptions PaintPopupLayout(PaintEventArgs e, bool show3D) {
winforms\Managed\System\WinForms\ButtonInternal\CheckBoxStandardAdapter.cs (5)
21internal override void PaintUp(PaintEventArgs e, CheckState state) 60internal override void PaintDown(PaintEventArgs e, CheckState state) { 69internal override void PaintOver(PaintEventArgs e, CheckState state) { 85using (PaintEventArgs pe = new PaintEventArgs(measurementGraphics, new Rectangle())) { 106protected override LayoutOptions Layout(PaintEventArgs e) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonBaseAdapter.cs (5)
29protected void DrawCheckFlat(PaintEventArgs e, LayoutData layout, Color checkColor, Color checkBackground, Color checkBorder) { 34protected void DrawCheckBackground3DLite(PaintEventArgs e, Rectangle bounds, Color checkColor, Color checkBackground, ColorData colors, bool disabledColors) { 61protected void DrawCheckBackgroundFlat(PaintEventArgs e, Rectangle bounds, Color borderColor, Color checkBackground) { 132protected void DrawCheckOnly(PaintEventArgs e, LayoutData layout, Color checkColor, Color checkBackground, bool disabledColors) { 177protected void DrawCheckBox(PaintEventArgs e, LayoutData layout) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonFlatAdapter.cs (5)
22internal override void PaintDown(PaintEventArgs e, CheckState state) { 38internal override void PaintOver(PaintEventArgs e, CheckState state) { 54internal override void PaintUp(PaintEventArgs e, CheckState state) { 70void PaintFlatWorker(PaintEventArgs e, Color checkColor, Color checkBackground, Color checkBorder, ColorData colors) { 88protected override LayoutOptions Layout(PaintEventArgs e) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonPopupAdapter.cs (4)
20internal override void PaintUp(PaintEventArgs e, CheckState state) { 42internal override void PaintOver(PaintEventArgs e, CheckState state) { 65internal override void PaintDown(PaintEventArgs e, CheckState state) { 93protected override LayoutOptions Layout(PaintEventArgs e) {
winforms\Managed\System\WinForms\ButtonInternal\RadioButtonStandardAdapter.cs (4)
20internal override void PaintUp(PaintEventArgs e, CheckState state) { 36internal override void PaintDown(PaintEventArgs e, CheckState state) { 45internal override void PaintOver(PaintEventArgs e, CheckState state) { 66protected override LayoutOptions Layout(PaintEventArgs e) {
winforms\Managed\System\WinForms\Control.cs (18)
7527protected void InvokePaint(Control c, PaintEventArgs e) { 7535protected void InvokePaintBackground(Control c, PaintEventArgs e) { 8495protected virtual void OnPrint(PaintEventArgs e) { 9375protected virtual void OnPaint(PaintEventArgs e) { 9399protected virtual void OnPaintBackground(PaintEventArgs pevent) { 9587internal void PaintBackground(PaintEventArgs e, Rectangle rectangle) { 9591internal void PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor) { 9595internal void PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset) { 9634private static void PaintBackColor(PaintEventArgs e, Rectangle rectangle, Color backColor) { 9669private void PaintException(PaintEventArgs e) { 9756internal void PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle) { 9767internal void PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle, Region transparentRegion) { 9810using (PaintEventArgs np = new PaintEventArgs(wg.GetHdc(), newClipRect)) { 9842private void PaintWithErrorHandling(PaintEventArgs e, short layer) { 10849protected void RaisePaintEvent(Object key, PaintEventArgs e) { 12966using (PaintEventArgs pevent = new PaintEventArgs(dc, Rectangle.FromLTRB(rc.left, rc.top, rc.right, rc.bottom))) { 13688PaintEventArgs pevent = null; 13788using (PaintEventArgs e = new PrintPaintEventArgs(m, m.WParam, ClientRectangle)) {
winforms\Managed\System\WinForms\DataGrid.cs (2)
3848protected override void OnPaintBackground(PaintEventArgs ebe) { 4403protected override void OnPaint(PaintEventArgs pe) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
17106protected override void OnPaint(PaintEventArgs e)
winforms\Managed\System\WinForms\Form.cs (1)
5058protected override void OnPaint(PaintEventArgs e) {
winforms\Managed\System\WinForms\GroupBox.cs (2)
513protected override void OnPaint(PaintEventArgs e) { 549private void DrawGroupBox(PaintEventArgs e) {
winforms\Managed\System\WinForms\Label.cs (1)
1513protected override void OnPaint(PaintEventArgs e) {
winforms\Managed\System\WinForms\LinkLabel.cs (3)
1128protected override void OnPaint(PaintEventArgs e) { 1283protected override void OnPaintBackground(PaintEventArgs e) { 1505using (PaintEventArgs e = new PaintEventArgs(g, ClientRectangle)) {
winforms\Managed\System\WinForms\PaintEvent.cs (2)
67/// Initializes a new instance of the <see cref='System.Windows.Forms.PaintEventArgs'/> class with the specified graphics and 149/// of the resources (other than memory) used by the <see cref='System.Windows.Forms.PaintEventArgs'/>.
winforms\Managed\System\WinForms\PaintEventHandler.cs (1)
21public delegate void PaintEventHandler(object sender, PaintEventArgs e);
winforms\Managed\System\WinForms\PictureBox.cs (1)
1292protected override void OnPaint(PaintEventArgs pe) {
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
537protected override void OnPaint(PaintEventArgs pevent) {
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1729void OncloseToolStripButtonPaint(object sender, PaintEventArgs e)
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
3283protected override void OnPaint(PaintEventArgs pevent) { 5064protected override void OnPaint(PaintEventArgs e) {
winforms\Managed\System\WinForms\PropertyGridInternal\DropDownButton.cs (2)
84protected override void OnPaint(PaintEventArgs pevent) { 196internal override void PaintUp(PaintEventArgs pevent, CheckState state) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (3)
3438protected override void OnPaintBackground(PaintEventArgs pe) { 3441protected override void OnPaint(PaintEventArgs pe) { 5910protected override void OnPaint(PaintEventArgs pe)
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
758protected override void OnPaintBackground (PaintEventArgs e) {
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1381protected override void OnPaint(PaintEventArgs e) {
winforms\Managed\System\WinForms\StatusStrip.cs (1)
324protected override void OnPaintBackground(PaintEventArgs e) {
winforms\Managed\System\WinForms\TableLayoutPanel.cs (1)
392protected override void OnPaintBackground(PaintEventArgs e) {
winforms\Managed\System\WinForms\TabPage.cs (1)
691protected override void OnPaintBackground (PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStrip.cs (5)
3615protected override void OnPaint(PaintEventArgs e) { 3721using (PaintEventArgs itemPaintEventArgs = new PaintEventArgs(itemGraphics, clippingRect)) { 3796protected override void OnPaintBackground(PaintEventArgs e) { 3827private void EraseCorners(PaintEventArgs e, Region transparentRegion) { 3837internal protected virtual void OnPaintGrip(System.Windows.Forms.PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripButton.cs (1)
249protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripContentPanel.cs (1)
367protected override void OnPaintBackground(PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripControlHost.cs (2)
705private void HandlePaint(object sender, PaintEventArgs e) { 832protected override void OnPaint(PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (1)
163protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
598protected override void OnPaintBackground(PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripGrip.cs (1)
132protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripItem.cs (4)
2618HandlePaint(e as PaintEventArgs); 2834private void HandlePaint(PaintEventArgs e) { 3259protected virtual void OnPaint(System.Windows.Forms.PaintEventArgs e) { 3491internal void RaisePaintEvent(object key, PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripLabel.cs (1)
299protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
1053protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
136protected override void OnPaint(PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (3)
516protected override void OnPaintBackground(PaintEventArgs e) { 877protected override void OnPaint(PaintEventArgs e) { 879protected override void OnPaintBackground(PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripSeparator.cs (1)
440protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (1)
602protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
winforms\Managed\System\WinForms\ToolStripStatusLabel.cs (1)
232protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
winforms\Managed\System\WinForms\UpDownBase.cs (2)
799protected override void OnPaint(PaintEventArgs e) { 1691protected override void OnPaint(PaintEventArgs e) {
System.Windows.Forms.DataVisualization (2)
WinForm\ChartWinControl.cs (2)
371 protected override void OnPaint(PaintEventArgs e) 494 protected override void OnPaintBackground(PaintEventArgs pevent)
System.Workflow.ComponentModel (37)
AuthoringOM\Design\ActivityDesigner.cs (2)
2961bool IWorkflowDesignerMessageSink.OnPaint(PaintEventArgs e, Rectangle viewPort) 3015bool IWorkflowDesignerMessageSink.OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort)
AuthoringOM\Design\CompositeActivityDesigner.cs (1)
1467using (PaintEventArgs paintEventArgs = new PaintEventArgs(e.Graphics, e.ViewPort))
AuthoringOM\Design\DesignerInterfaces.cs (2)
148bool OnPaint(PaintEventArgs e, Rectangle viewPort); 149bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort);
AuthoringOM\Design\DesignerWidgets.cs (5)
1221protected override void OnPaint(PaintEventArgs paintArgs) 1417protected override void OnPaint(PaintEventArgs e) 1614private void OnSplitterPaint(object sender, PaintEventArgs e) 1869protected override void OnPaint(PaintEventArgs e) 3483using (PaintEventArgs paintEventArgs = new PaintEventArgs(graphics, previewDesignerViewPort))
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (2)
543private void OnThemePanelPaint(object sender, PaintEventArgs e) 1197protected override void OnPaint(PaintEventArgs e)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
504protected override void OnPaint(PaintEventArgs paintArgs)
AuthoringOM\Design\MessageFilters\AutoScrollExpandMessageFilter.cs (1)
64protected override bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\ConnectionManager.cs (1)
228protected override bool OnPaint(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (1)
605protected override bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\DragSelectionMessageFilter.cs (1)
114protected override bool OnPaint(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (1)
297protected override bool OnPaintWorkflowAdornments(PaintEventArgs e, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (2)
145protected override bool OnPaintWorkflowAdornments(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 153protected override bool OnPaint(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme)
AuthoringOM\Design\MessageFilters\WorkflowDesignerMessageFilter.cs (4)
139protected virtual bool OnPaint(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 144protected virtual bool OnPaintWorkflowAdornments(PaintEventArgs eventArgs, Rectangle viewPort, AmbientTheme ambientTheme) 483bool IWorkflowDesignerMessageSink.OnPaint(PaintEventArgs eventArgs, Rectangle viewPort) 497bool IWorkflowDesignerMessageSink.OnPaintWorkflowAdornments(PaintEventArgs eventArgs, Rectangle viewPort)
AuthoringOM\Design\StructuredCompositeActivityDesigner.cs (1)
675using (PaintEventArgs paintEventArgs = new PaintEventArgs(e.Graphics, e.ViewPort))
AuthoringOM\Design\WorkflowLayouts.cs (7)
53public abstract void OnPaint(PaintEventArgs e, ViewPortData viewPortData); 54public abstract void OnPaintWorkflow(PaintEventArgs e, ViewPortData viewPortData); 132public override void OnPaint(PaintEventArgs e, ViewPortData viewPortData) 187public override void OnPaintWorkflow(PaintEventArgs e, ViewPortData viewPortData) 227public override void OnPaint(PaintEventArgs e, ViewPortData viewPortData) 512public override void OnPaint(PaintEventArgs e, ViewPortData viewPortData) 582public override void OnPaintWorkflow(PaintEventArgs e, ViewPortData viewPortData)
AuthoringOM\Design\WorkflowPrinting.cs (1)
163using (PaintEventArgs paintEventArgs = new PaintEventArgs(graphics, this.workflowView.RootDesigner.Bounds))
AuthoringOM\Design\WorkflowView.cs (4)
1019protected override void OnPaint(PaintEventArgs e) 1566using (PaintEventArgs eventArgs = new PaintEventArgs(viewPortGraphics, viewPortData.LogicalViewPort)) 1612using (PaintEventArgs paintEventArgs = new PaintEventArgs(viewPortGraphics, viewPortData.LogicalViewPort)) 1628using (PaintEventArgs paintArgs = new PaintEventArgs(viewPortGraphics, workflowView.RootDesigner.Bounds))
System.WorkflowServices (1)
System\Workflow\Activities\Design\GradientPanel.cs (1)
71protected override void OnPaint(PaintEventArgs e)