Nativescript Doc
Preparing search index...
The search index is not available
Documentation
Documentation
ui-canvas
StaticLayout
Class StaticLayout
Hierarchy
any
StaticLayout
Index
Constructors
constructor
Methods
draw
get
Native
set
Native
get
Desired
Width
Constructors
constructor
new
StaticLayout
(
text
:
any
,
paint
:
Paint
,
width
:
number
,
align
?:
any
,
spacingmult
?:
any
,
spacingadd
?:
any
,
includepad
?:
any
,
ellipsize
?:
any
,
ellipsizedWidth
?:
any
,
height
?:
any
,
)
:
StaticLayout
Parameters
text
:
any
paint
:
Paint
width
:
number
Optional
align
:
any
Optional
spacingmult
:
any
Optional
spacingadd
:
any
Optional
includepad
:
any
Optional
ellipsize
:
any
Optional
ellipsizedWidth
:
any
Optional
height
:
any
Returns
StaticLayout
Methods
draw
draw
(
canvas
:
any
,
path
?:
any
,
paint
?:
any
,
param3
?:
number
)
:
void
Parameters
canvas
:
any
Optional
path
:
any
Optional
paint
:
any
Optional
param3
:
number
Returns
void
get
Native
getNative
()
:
any
Returns
any
set
Native
setNative
(
object
:
any
)
:
any
Parameters
object
:
any
Returns
any
Static
get
Desired
Width
getDesiredWidth
(
text
:
any
,
paint
:
any
)
:
any
Parameters
text
:
any
paint
:
any
Returns
any
getDesiredWidth
(
text
:
any
,
start
:
number
,
end
:
number
,
paint
:
any
)
:
any
Parameters
text
:
any
start
:
number
end
:
number
paint
:
any
Returns
any
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
draw
get
Native
set
Native
get
Desired
Width
Nativescript Doc
Documentation
Loading...