Skip to main content

ExtensionsFactory.Diagram(Action<DiagramSettings>) Method

Creates a Diagram.

Namespace: DevExpress.Web.Mvc.UI

Assembly: DevExpress.Web.Mvc5.v24.2.dll

Declaration

public DiagramExtension Diagram(
    Action<DiagramSettings> method
)

Parameters

Name Type Description
method Action<DiagramSettings>

A delegate method that accepts DiagramSettings as a parameter.

Returns

Type Description
DiagramExtension

The Diagram extension.

Remarks

The Diagram helper method adds the Diagram extension (DiagramExtension) to a view. The method’s parameter provides access to the Diagram’s settings (DiagramSettings).

@Html.DevExpress().Diagram(settings => {
    settings.Name = "Diagram";
}).GetHtml()
See Also