Paper Office
paper-docxAPI referenceshared

Length

paper-docx 0.2.0 API reference

Base class for length constructor classes Inches, Cm, Mm, Px, and Emu.

Behaves as an int count of English Metric Units, 914,400 to the inch, 36,000 to the mm. Provides convenience unit conversion methods in the form of read-only properties. Immutable.

Attributes

cm

attributecm

The equivalent length expressed in centimeters (float).

emu

attributeemu

The equivalent length expressed in English Metric Units (int).

inches

attributeinches

The equivalent length expressed in inches (float).

mm

attributemm

The equivalent length expressed in millimeters (float).

pt

attributept

Floating point length in points.

twips

attributetwips

The equivalent length expressed in twips (int).

On this page