ExtensionsFactory.Diagram(Action<DiagramSettings>) Method
In This Article
Creates a Diagram.
Namespace: DevExpress.Web.Mvc.UI
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public DiagramExtension Diagram(
Action<DiagramSettings> method
)
#Parameters
Name | Type | Description |
---|---|---|
method | Action<Diagram |
A delegate method that accepts Diagram |
#Returns
Type | Description |
---|---|
Diagram |
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