wpf-devexpress-dot-xpf-dot-diagram-dot-diagramitem-4bd4e20f.md
Gets the diagram control that is the owner of the diagram item.
Namespace : DevExpress.Xpf.Diagram
Assembly : DevExpress.Xpf.Diagram.v25.2.dll
NuGet Package : DevExpress.Wpf.Diagram
public DiagramControl GetDiagram()
Public Function GetDiagram As DiagramControl
| Type | Description |
|---|---|
| DiagramControl |
A DiagramControl object that is the owner of the DiagramItem.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetDiagram() method.
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 Sub UpdateDiagram()
Diagram = AssociatedObject.GetDiagram()
End Sub
See Also