WorkflowDesignerMessageFilter.OnPaint Method (PaintEventArgs, Rectangle, AmbientTheme)

 

Occurs when a paint message is received.

Namespace:   System.Workflow.ComponentModel.Design
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

protected virtual bool OnPaint(
	PaintEventArgs eventArgs,
	Rectangle viewPort,
	AmbientTheme ambientTheme
)

Parameters

eventArgs
Type: System.Windows.Forms.PaintEventArgs

A PaintEventArgs that contains information about the event.

viewPort
Type: System.Drawing.Rectangle

A Rectangle that describes the area to be painted.

ambientTheme
Type: System.Workflow.ComponentModel.Design.AmbientTheme

A AmbientTheme used to obtain information about the theme.

Return Value

Type: System.Boolean

true if the message is handled; otherwise, false.

OnPaint occurs when a paint message is received. Use the parameters passed to OnPaint to determine the area to be painted, the theme used, and additional information about the event passed in the PaintEventArgs.

.NET Framework
Available since 3.0
Return to top
Show: