CustomDrawBackgroundEventArgs(Graphics, DiagramDrawingContext, RectangleF, RectangleF, IEnumerable<DiagramPageInfo>, RectangleF, Nullable<RectangleF>, Nullable<RectangleF>, Nullable<Int32>) Constructor
Initializes a new instance of the CustomDrawBackgroundEventArgs class with the specified settings.
Namespace: DevExpress.XtraDiagram
Assembly: DevExpress.XtraDiagram.v19.1.dll
Declaration
public CustomDrawBackgroundEventArgs(
Graphics graphics,
DiagramDrawingContext context,
RectangleF contentBounds,
RectangleF totalBounds,
IEnumerable<DiagramPageInfo> pages,
RectangleF viewportBounds,
RectangleF? printBounds = default(RectangleF? ),
RectangleF? printClientBounds = default(RectangleF? ),
int? printIndex = default(int? )
)
Parameters
Name | Type | Description |
---|---|---|
graphics | Graphics | A System.Drawing.Graphics object that provides painting facilities. |
context | DiagramDrawingContext | A DiagramDrawingContext enumeration value. |
contentBounds | RectangleF | The bounds of the background excluding margins. |
totalBounds | RectangleF | The total bounds of the background. |
pages | IEnumerable<DevExpress.XtraDiagram.DiagramPageInfo> | A list of diagram pages represented by DevExpress.XtraDiagram.DiagramPageInfo objects. |
viewportBounds | RectangleF | The viewport bounds. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
printBounds | Nullable<RectangleF> | *null* | The total bounds of the background when printing the diagram. |
printClientBounds | Nullable<RectangleF> | *null* | The bounds of the background excluding margins when printing the diagram. |
printIndex | Nullable<Int32> | *null* | A zero-based index of the page that is currently being rendered when printing the diagram. |
Remarks
Instances of the CustomDrawBackgroundEventArgs class are automatically created, initialized and passed to the corresponding event handlers.