DiagramSettings.ViewUnits Property

Specifies the measurement unit that is displayed in user interface elements.

Namespace: DevExpress.Web.Mvc

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

Declaration

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

Property Value

Type Description
DiagramUnit

The unit.

Remarks

The ViewUnits property specifies the measurement unit in properties panel and in the diagram work area.

@Html.DevExpress().Diagram(settings => {
    settings.Name = "Diagram";
    settings.ViewUnits = DevExpress.Web.ASPxDiagram.DiagramUnit.Cm;
}).Import(Model).GetHtml()

View Units

See Also