Search
DiagramBase.DrawBackground Event
See Also
 





Raised to let you custom draw the diagram background.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public event EventHandler<DiagramEventArgs> DrawBackground

Visual Basic  Copy Code

Public Event DrawBackground As EventHandler(Of DiagramEventArgs)

 Event Data

DrawBackground event handlers receive an argument of type DiagramEventArgs. The following DiagramEventArgs members provide information relevant to the event:

Member name

Description

Graphics

Gets an object implementing the IGraphics interface whose methods should be used to draw the custom graphics.

VisibleRect

Specifies what part of the diagram is currently visible.

ClipRect

Gets the current clipping rectangle.

 Remarks

This event is raised just after drawing the BackgroundImage and before drawing the alignment grid.

 See Also