Difference between revisions of "TextField:setSample"
From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | + | '''Available since:''' Gideros 2016.08<br/> | |
− | ''' | + | '''Class:''' [[TextField]]<br/> |
− | ''' | + | |
− | === | + | === Description === |
− | + | Sets the String that will be used as sample for determining the text line height. | |
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
− | + | TextField:setSample(sample) | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | === | + | |
− | '''sample''': (string) | + | === Parameters === |
+ | '''sample''': (string) string to use as sample<br/> | ||
{{TextField}} | {{TextField}} |
Latest revision as of 08:15, 18 October 2024
Available since: Gideros 2016.08
Class: TextField
Description
Sets the String that will be used as sample for determining the text 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