Search
DiagramViewExtensions.DiagramView Method (IHtmlHelper, DiagramView, Object)
See Also
 





Returns a DiagramView by using the specified HTML helper.

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

 Syntax

C#  Copy Code

public static MvcHtmlString DiagramView (
    HtmlHelper helper,
    DiagramView diagramView,
    Object htmlAttributes
)

Visual Basic  Copy Code

Public Shared Function DiagramView( _
    helper As HtmlHelper, _
    diagramView As DiagramView, _
    htmlAttributes As Object _
) As MvcHtmlString

 Parameters

helper

The HTML helper

diagramView

The DiagramView

htmlAttributes

An object containing the HTML attributes for the control.

 Return Value

 Remarks

Use the htmlAttributes parameter to pass style data to the control's outer div element. The following example sets the control's width and height properties and hides the scrollbars.

 Example

HTML  Copy Code

@Html.DiagramView(
    ((DiagramView)ViewBag.DiagramView),
    new { style = "width:500px;height:500px;overflow:hidden;"})

 See Also