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

DiagramOptionsView.MeasureUnit Property

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

Namespace: DevExpress.XtraDiagram.Options

Assembly: DevExpress.XtraDiagram.v18.2.dll

Declaration

[DefaultValue(typeof(MeasureUnit), "Pixels")]
public virtual MeasureUnit MeasureUnit { get; set; }

Property Value

Type Default Description
MeasureUnit "Pixels"

A unit of measure.

Property Paths

You can access this nested property as listed below:

Object Type Path to MeasureUnit
DiagramControl
.OptionsView.MeasureUnit

Remarks

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