Adobe Illustrator CS6 Type Library JS: UnitValue

Illustrator CS6

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, 25-Nov-2012 v3.0.3iContents :: Index