TdxRichEditDocumentUnit Enum
Enumerates measurement units used in a document.
Declaration
TdxRichEditDocumentUnit = (
Document,
Inch,
Millimeter,
Centimeter,
Point
);
Members
Name |
---|
Document
|
Inch
|
Millimeter
|
Centimeter
|
Point
|
Remarks
Options include:
Value | Description | Horizontal Ruler Appearance |
---|---|---|
Document | This (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. | |
Inch | All customizable positions and dimensions in a document are in inches. The horizontal and vertical rulers have inch scales in this mode. | |
Millimeter | All customizable distances, positions, and sizes in a document are in millimeters. The horizontal and vertical rulers have millimeter scales in this mode. | |
Centimeter | All customizable distances, positions, and sizes in a document are in centimeters. The horizontal and vertical rulers have centimeter scales in this mode. | |
Point | This 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