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

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public DiagramUnit ViewUnits { get; set; }

Property Value

Type Description
DiagramUnit

The unit.

Available values:

Name Description
In

Inch

Cm

Centimeter

Px

Pixel

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