object:getLabel()

类型 函数
widget.*
返回值 字符串
修订 版本 2024.3703
关键词 widget, button, ButtonWidget, getLabel
另请参阅 object:setLabel()
widget.newButton()
ButtonWidget

概述

返回 ButtonWidget 标签文本作为字符串。

语法

object:getLabel()

示例

local label = myButton:getLabel()