Version

Unit Property (WordDocumentWriter)

Returns or sets a value indicating the implied unit of measurement for properties which represent graphical quantities.
Syntax
'Declaration
 
Public Property Unit As UnitOfMeasurement
public UnitOfMeasurement Unit {get; set;}
Remarks

The default unit of measurement for the properties which represent graphical quantities is the desktop publishing point, which is equivalent to 1/72 of an inch. This property can be changed to redefine that unit of measurement, so that graphical properties can be interacted with using units that are most comfortable to the end developer.

All property values are stored internally as twips (twentieths of a point), and coverted as appropriate in the property's get and set method implementations. The value of the Unit property can be changed at any time by the developer without affecting previously persisted property values.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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

See Also