UnitValue

Represents a measurement as a combination of values and unit.

Note that this object is not available in all applications.

Methods:

convert, as

Objects:

Number, String, UnitValue

Property Listing

Property

Type

Access

Description

baseUnit

UnitValue

read/write

The base unit.

type

String

readonly

The unit name.

value

Number

read/write

The numeric value.

Property Listing

Name

Type

Access

Description

baseUnit

UnitValue

readonly

The base unit for all conversions.

Method Listing

UnitValue as (unitName:String)

Returns this instance as a different unit.

Parameter

Type

Description

unitName

String

The unit name.

Varies convert (unitName:String)

Converts this instance to a different unit.

Parameter

Type

Description

unitName

String

The unit name.

Object of

UnitValue.baseUnit

UnitValue.baseUnit

DocumentPrintSettings.bleedWidth

GenericPDFOpenOptions.height

GenericPDFOpenOptions.width

Guide.coordinate

TextItem.baselineShift

TextItem.spaceAfter

TextItem.spaceBefore

TextItem.leftIndent

TextItem.rightIndent

TextItem.firstLineIndent

TextItem.hyphenationZone

TextItem.size

TextItem.height

Document.height

GenericEPSOpenOptions.height

GenericEPSOpenOptions.width

TextItem.leading

TextItem.width

Document.width

DocumentPrintSettings.printBorder

DocumentPrintSettings.posX

DocumentPrintSettings.posY

Return

UnitValue.as()