Adobe InDesign CS6 Server (8.0) Object Model JS: UnitValue
From InDesign Server 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, convertProperties
| Property | Type | Access | Description |
|---|---|---|---|
| baseUnit | UnitValue | r/w | The base unit. |
| type | string | readonly | The unit name. |
| value | number | r/w | The numeric value. |
Class
| Property | Type | Access | Description |
|---|---|---|---|
| baseUnit | UnitValue | r/w | The base unit for all conversions. |
Methods
Instances
UnitValue as (unitName:
string)
Returns this instance as a different unit.
| Parameter | Type | Description |
|---|---|---|
| unitName | string | The unit name. |
any convert (unitName:
string)
Converts this instance to a different unit.
| Parameter | Type | Description |
|---|---|---|
| unitName | string | The unit name. |
Element of
UnitValue.baseUnit
UnitValue.baseUnit
Return
UnitValue UnitValue.as (unitName: string)
| Jongware, 28-Apr-2012 v3.0.3i | Contents :: Index |