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

Declaration

public DiagramUnit Units { get; set; }
Public Property Units As DiagramUnit

Property Value

Type Description
DiagramUnit

The unit.

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