Adobe InDesign CS5 (7.0) Object Model JS: UnitValue

InDesign CS5

Class

UnitValue

 

Represents a measurement as a combination of values and unit.

Note that this object is not available in all applications.

QuickLinks

as, convert

Properties

PropertyTypeAccessDescription
baseUnitUnitValue r/wThe base unit.
typestring readonlyThe unit name.
valuenumber r/wThe numeric value.

Class

PropertyTypeAccessDescription
baseUnitUnitValue r/wThe base unit for all conversions.

Methods

Instances

UnitValue as (unitName: string)
Returns this instance as a different unit.

ParameterTypeDescription
unitNamestringThe unit name.

any convert (unitName: string)
Converts this instance to a different unit.

ParameterTypeDescription
unitNamestringThe unit name.

Element of

UnitValue.baseUnit

UnitValue.baseUnit

Return

UnitValue UnitValue.as (unitName: string)

Jongware, 20-Jun-2010 v3.0.3dContents :: Index