Back to Devexpress

DiagramItem.GetDiagram() Method

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramitem-4bd4e20f.md

latest2.0 KB
Original Source

DiagramItem.GetDiagram() Method

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

Declaration

csharp
public DiagramControl GetDiagram()
vb
Public Function GetDiagram As DiagramControl

Returns

TypeDescription
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.

wpf-generate-diagram-with-grouped-items/VB/DiagramNestedItemsExample/StackLayoutDiagramContainerBehavior.vb#L69

vb
Private Sub UpdateDiagram()
    Diagram = AssociatedObject.GetDiagram()
End Sub

See Also

DiagramItem Class

DiagramItem Members

DevExpress.Xpf.Diagram Namespace