windowsforms-devexpress-dot-xtradiagram-dot-customdrawitemeventargs-cd163b40.md
Gets the processed diagram item.
Namespace : DevExpress.XtraDiagram
Assembly : DevExpress.XtraDiagram.v25.2.dll
NuGet Package : DevExpress.Win.Diagram
public DiagramItem Item { get; }
Public ReadOnly Property Item As DiagramItem
| Type | Description |
|---|---|
| DiagramItem |
A DiagramItem object.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Item property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
private void diagramControl1_CustomDrawItem(object sender, CustomDrawItemEventArgs e) {
var shape = e.Item as DiagramShapeEx;
if (shape == null)
Private Sub diagramControl1_CustomDrawItem(ByVal sender As Object, ByVal e As CustomDrawItemEventArgs)
Dim shape = TryCast(e.Item, DiagramShapeEx)
If shape Is Nothing Then Return
See Also