跳到主要内容

ApiTextField

表示 ApiTextField 类。

方法

方法返回值描述
ClearFormatboolean清除字段的格式。
GetCharLimitnumber获取文本字段的字符限制。<note> 字符限制为 0 表示字段没有字符限制
GetClassType"textField"返回 ApiTextField 类的类型。
IsCombboolean检查文本字段是否为梳状。
IsMultilineboolean检查文本字段是否为多行。
IsScrollLongTextboolean检查文本字段是否可以滚动长文本。
SetCharLimitboolean设置文本字段的字符限制。<note> 字符限制为 0 表示字段没有字符限制
SetCombboolean设置文本字段的梳状属性。💡 字符限制应大于 0
SetDateFormatboolean设置字段的日期格式。
SetMaskboolean设置字段输入文本的掩码。
SetMultilineboolean设置文本字段的多行属性。
SetNumberFormatboolean设置字段的数字格式。
SetPercentageFormatboolean设置字段的百分比格式。
SetRegularExpboolean设置字段的正则表达式验证字符串。
SetScrollLongTextboolean设置文本字段可滚动长文本的属性。
SetSpecialFormatboolean设置字段的特殊格式。
SetTimeFormatboolean设置字段的时间格式。
SetValidateRangeboolean设置字段的验证范围。💡 只能应用于具有百分比或数字格式的字段。