Back to Devexpress

TdxRichEditDocumentUnit Enum

vcl-dxrichedit-dot-nativeapi-034d1443.md

latest2.7 KB
Original Source

TdxRichEditDocumentUnit Enum

Enumerates measurement units used in a document.

Declaration

delphi
TdxRichEditDocumentUnit = (
    Document,
    Inch,
    Millimeter,
    Centimeter,
    Point
);

Members

Name
Document
Inch
Millimeter
Centimeter
Point

Remarks

Options include:

ValueDescriptionHorizontal Ruler Appearance
DocumentThis (default) measurement unit corresponds to 1 / 300 of an inch. The Rich Edit control uses this unit to perform internal calculations with a document model. The horizontal and vertical rulers display inches in this mode.
InchAll customizable positions and dimensions in a document are in inches. The horizontal and vertical rulers have inch scales in this mode.
MillimeterAll customizable distances, positions, and sizes in a document are in millimeters. The horizontal and vertical rulers have millimeter scales in this mode.
CentimeterAll customizable distances, positions, and sizes in a document are in centimeters. The horizontal and vertical rulers have centimeter scales in this mode.
PointThis measurement unit is a typographic point (that is, 1 / 72 of an inch). All positions, distances, and sizes in a document are in typographic points. The horizontal and vertical rulers show inch major ticks labeled in typographic points on the scales.

The IdxRichEditDocument interface’s Unit property references the TdxRichEditDocumentUnit type.

Note

TdxRichEditDocumentUnit is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxRichEditDocumentUnit.Millimeter (in Delphi) or TdxRichEditDocumentUnit::Millimeter (in C++Builder) to refer to the Millimeter value in code.

See Also

dxRichEdit.NativeApi Unit