All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ExtensionsFactory.Diagram(DiagramSettings) Method

Creates a Diagram.

Namespace: DevExpress.Web.Mvc.UI

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

Declaration

public DiagramExtension Diagram(
    DiagramSettings settings
)
Public Function Diagram(
    settings As DiagramSettings
) As DiagramExtension

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