CustomDrawItemEventArgs(Graphics, DiagramItem, Action<DiagramAppearanceObject, CustomDrawItemMode>, DiagramAppearanceObject, SizeF, DiagramDrawingContext) Constructor
Initializes a new instance of the CustomDrawItemEventArgs class with the specified settings.
Namespace: DevExpress.XtraDiagram
Assembly: DevExpress.XtraDiagram.v19.1.dll
Declaration
public CustomDrawItemEventArgs(
Graphics graphics,
DiagramItem item,
Action<DiagramAppearanceObject, CustomDrawItemMode> defaultDraw,
DiagramAppearanceObject appearance,
SizeF size,
DiagramDrawingContext context
)
Parameters
Name | Type | Description |
---|---|---|
graphics | Graphics | An object that provides painting facilities. |
item | DiagramItem | A diagram item to process. |
defaultDraw | Action<DiagramAppearanceObject, CustomDrawItemMode> | A CustomDrawItemMode value that determines which elements of the default painting should be painted. |
appearance | DiagramAppearanceObject | An object that provides the item’s appearance settings. |
size | SizeF | A System.Drawing.SizeF object that is the item size. |
context | DiagramDrawingContext | A DiagramDrawingContext value that indicates whether the item is to be drawn on the canvas, toolbox, in the print or export output or as the drag preview. |
Remarks
Instances of the CustomDrawItemEventArgs class are automatically created, initialized and passed to the corresponding event handlers.
See Also