C1.C1Preview Namespace > Unit Structure > Unit Constructor : Unit Constructor(String) |
(In the description that follows, "object" means a RenderObject or another document object on which the current Unit represents a dimension or a coordinate, not the Unit structure itself.)
The str string should contain a valid Unit value in one of the following forms:In this case C1PrintDocument.DefaultUnit determines the unit of measurement.
The following unit type qualifiers are supported (for each type, the corresponding element of the UnitTypeEnum enumeration is listed):
(Percentage can only be used to specify width or height, and is not valid for coordinates.)
The referenced object may be identified by any of the following key words:
Examples of unit expressions are:
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2