object.align

类型 字符串
对象 文本框
native.*
修订 版本 2024.3703
关键词 原生文本输入

概述

文本框中显示的文本对齐方式。可以设置为以下字符串之一:

示例

local inputBox = native.newTextBox( 160, 240, 280, 140 )
inputBox.align = "center"