CustomDrawBackgroundEventArgs Properties

Provides data for the DiagramControl.CustomDrawBackground event.
Name Description
ContentBounds Gets the rectangle which encompasses the background area excluding margins.
Context Gets whether the item is to be drawn on the canvas, toolbox, in the print or export output or as the drag preview.
Graphics Returns an object that provides painting facilities.
GraphicsCache Returns an object that provides painting facilities.
PagesInfo Gets the list of diagram pages.
PrintBounds Gets the rectangle which encompasses the total background area when printing the diagram.
PrintClientBounds Gets the rectangle which encompasses the background area excluding margins when printing the diagram.
PrintIndex Gets the zero-based index of the page that is currently being rendered when printing the diagram.
TotalBounds Gets the rectangle which encompasses the total background area.
ViewportBounds Gets the rectangle which encompasses the viewport area.
See Also