DiagramOptionsView.MeasureUnit Property

Specifies the unit of measurement for the ruler displayed by the Canvas.

Namespace: DevExpress.XtraDiagram.Options

Assembly: DevExpress.XtraDiagram.v20.1.dll


[DefaultValue(typeof(MeasureUnit), "Pixels")]
public virtual MeasureUnit MeasureUnit { get; set; }
<DefaultValue(GetType(MeasureUnit), "Pixels")>
Public Overridable Property MeasureUnit As MeasureUnit

Property Value

Type Default Description


A unit of measure.

Property Paths

You can access this nested property as listed below:

Object Type Path to MeasureUnit


The ruler is shown if the DiagramOptionsView.ShowRulers property is set to true.

The available measurement units are stored in the MeasureUnits class.

See Also