枚举属性(PropertyEnum)
PropertyEnum 是带有枚举专用 API 的 属性(Property)。
方法(Methods)
values
返回该枚举的 枚举值集合(EnumValues)。
local vmi = context:viewModel()
if vmi then
local textAlignment = vmi:getEnum('textAlignment')
if textAlignment then
local values = textAlignment:values()
end
end