Search
DiagramView Class
Remarks See Also
 





A control that displays the contents of a Diagram on a web page.

Namespace: MindFusion.Diagramming.Mvc
Assembly: MindFusion.Diagramming.Mvc

 Syntax

C#  Copy Code

public class DiagramView

Visual Basic  Copy Code

Public Class DiagramView

 Remarks

Apart from rendering the diagram, DiagramView also controls most aspects of user interaction. The Behavior property specifies how the control responds to user actions with the mouse. AllowInplaceEdit specifies whether users are allowed to edit in-place the content of a diagram element by double-clicking it.

DiagramView can be created inside a Razor page either by invoking the DiagramView html helper, or by adding a <mindfusion-diagramview> tag helper:

Razor  Copy Code

@addTagHelper *, MindFusion.Diagramming.Mvc
....
<mindfusion-diagramview
    component=(DiagramView)ViewBag.DiagramView
    style="width:100%; height:100%;">
</mindfusion-diagramview>

 Inheritance Hierarchy

System.Object
    MindFusion.Diagramming.Mvc.DiagramView
        MindFusion.Diagramming.Mvc.TabbedDiagramView

 See Also