Difference between revisions of "TextField:setSample"
From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2016.08<br/> === Description === Set string that will be used as sample for determining text's line height <source lang="lua"> = TextF...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Available since:''' Gideros 2016.08<br/> | + | <languages /> |
− | === Description === | + | '''<translate>Available since</translate>:''' Gideros 2016.08<br/> |
− | Set string that will be used as sample for determining text's line height | + | '''<translate>Class</translate>:''' [[Special:MyLanguage/TextField|TextField]]<br/> |
− | < | + | === <translate>Description</translate> === |
− | + | <translate>Set string that will be used as sample for determining text's line height</translate> | |
− | </ | + | <syntaxhighlight lang="lua"> |
− | '''sample | + | TextField:setSample(sample) |
+ | </syntaxhighlight> | ||
+ | === <translate>Parameters</translate> === | ||
+ | '''sample''': (string) <translate>string to use as sample</translate> <br/> | ||
+ | |||
+ | {{TextField}} |
Latest revision as of 15:33, 13 July 2023
Available since: Gideros 2016.08
Class: TextField
Description
Set string that will be used as sample for determining text's line height
TextField:setSample(sample)
Parameters
sample: (string) string to use as sample
- TextField
- TextField.new
- TextField:getLayout
- TextField:getLetterSpacing
- TextField:getLineHeight
- TextField:getPointFromTextPosition
- TextField:getSample
- TextField:getText
- TextField:getTextColor
- TextField:getTextPositionFromPoint
- TextField:setFont
- TextField:setLayout
- TextField:setLetterSpacing
- TextField:setSample
- TextField:setText
- TextField:setTextColor