Back to Devexpress

CustomDrawItemEventArgs.Context Property

windowsforms-devexpress-dot-xtradiagram-dot-customdrawitemeventargs-a865eb8e.md

latest2.2 KB
Original Source

CustomDrawItemEventArgs.Context Property

Returns the 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.

Namespace : DevExpress.XtraDiagram

Assembly : DevExpress.XtraDiagram.v25.2.dll

NuGet Package : DevExpress.Win.Diagram

Declaration

csharp
public DiagramDrawingContext Context { get; }
vb
Public ReadOnly Property Context As DiagramDrawingContext

Property Value

TypeDescription
DiagramDrawingContext

A DiagramDrawingContext value.

|

Available values:

NameDescription
Canvas

The item is to be drawn on the canvas.

| | Toolbox |

The item is to be drawn on the toolbox.

| | DragPreview |

The item is to be drawn as the drag preview.

| | Print |

The item is to be drawn on the canvas when printing the diagram.

| | ExportToImage |

The item is to be drawn on the canvas when exporting the diagram to image.

| | ExportToPdf |

The item is to be drawn on the canvas when exporting the diagram to a PDF document.

| | Detached |

The item is to be drawn independently from the diagram control.

|

Remarks

The Context property returns the DiagramDrawingContext.Detached value for items that are drawn by the XtraDiagramExtensions.DrawDetachedItem method.

See Also

CustomDrawItemEventArgs Class

CustomDrawItemEventArgs Members

DevExpress.XtraDiagram Namespace