Skip to main content
.NET Framework 4.5.2+

DocumentUnit Enum

Lists measurement units used in the document.

Namespace: DevExpress.Office

Assembly: DevExpress.Office.v22.1.Core.dll

Declaration

[ComVisible(true)]
public enum DocumentUnit

Members

Name Description
Document

Specifies documents (one three-hundredths of an inch) as measurement units.

Inch

Specifies inches as measurement units.

Millimeter

Specifies millimeters as measurement units.

Centimeter

Specifies centimeters as measurement units.

Point

Specifies points as measurement units.

Related API Members

The following properties accept/return DocumentUnit values:

Library Related API Members
WinForms Controls RichEditControl.Unit
SpreadsheetControl.Unit
WPF Controls RichEditControl.Unit
SpreadsheetControl.Unit
Office File API Document.Unit
IRichEditDocumentServer.Unit
ISpreadsheetComponent.Unit
RichEditDocumentServer.Unit
Workbook.Unit

Remarks

Values listed by this enumeration are used to set the RichEditControl.Unit, Document.Unit, SpreadsheetControl.Unit, ISpreadsheetComponent.Unit and Workbook.Unit properties. By default, the DocumentUnit.Document unit is used.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DocumentUnit enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also