Help prepare for 2025 → Answer 8 simple questions on our Fall Survey
Open Survey

Summary

Functions

convertToString

convertToString(length: LengthType): string
Parameter Default Description
length

Returns string

equals

equals(a: LengthType, b: LengthType): boolean
Parameter Default Description
a

b

Returns boolean

parse

parse(text: string): LengthType
Parameter Default Description
text
string

Returns LengthType

toDevicePixels

toDevicePixels(length: LengthType, auto?: number): number
Converts Length unit to device pixels.
Parameter Default Description
length

The Length to convert.

auto
number

Value to use for conversion of "auto". By default is Math.NaN.

Returns number
Previous
IOSHelper