.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
A newer version of this page is available. Switch to the current version.

Document.Unit Property

Gets or sets a document's measure units.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

DocumentUnit Unit { get; set; }
Property Unit As DocumentUnit

Property Value

Type Description
DocumentUnit

One of the DocumentUnit enumeration values indicating the measure unit.

Remarks

The Unit property specifies almost all properties involving linear measurements. The default unit of measurement is the DocumentUnit.Document.

Changing the Unit value recalculates all related properties as well. Specify the Unit property before setting target linear measurements.

See Also