Skip to main content
A newer version of this page is available. .

DiagramSettings.Units Property

Specifies the measurement unit for size properties (for instance, Height, Width).

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public DiagramUnit Units { get; set; }

Property Value

Type Description
DiagramUnit

The unit.

Available values:

Name Description
In

Inch

Cm

Centimeter

Px

Pixel

Remarks

@Html.DevExpress().Diagram(settings => {
    settings.Name = "Diagram";
    settings.Units = DevExpress.Web.ASPxDiagram.DiagramUnit.Px;
    ...
}).Bind(Model.Objects, Model.Connections).GetHtml()

Run Demo: Node and Edge Data Sources

See Also