Skip to main content

DiagramSettings.ViewUnits Property

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

Namespace: DevExpress.Web.Mvc

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

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