Skip to main content

ExtensionsFactory.Diagram(DiagramSettings) Method

Creates a Diagram.

Namespace: DevExpress.Web.Mvc.UI

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public DiagramExtension Diagram(
    DiagramSettings settings
)

Parameters

Name Type Description
settings DiagramSettings

The Diagram settings.

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

@{DiagramSettings dSettings = new DiagramSettings();
    dSettings.Name = "Diagram";}

@Html.DevExpress().Diagram(dSettings).GetHtml()
See Also