ASP.NET Pack Programmer's Guide
DiagramBase.DrawBackground Event
See Also
 





Raised to let you custom draw the diagram background.

Namespace: MindFusion.Diagramming
Package: 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

DiagramBase Members
DiagramBase Class
MindFusion.Diagramming Namespace
DrawForeground Event