跳到主要内容

GetCheckStyle

获取控件复选框样式。

语法

expression.GetCheckStyle();

expression - 表示 ApiCheckboxWidget 类的变量。

参数

此方法没有任何参数。

返回值

CheckStyle

示例

此示例获取复选框控件的选中样式。

let doc = Api.GetDocument();
let page = doc.GetPage(0);
let radiobuttonField = Api.CreateRadiobuttonField([10, 10, 25, 25]);
page.AddObject(radiobuttonField);

let widgets = radiobuttonField.GetAllWidgets();
console.log('Check style is: ' + widgets[0].GetCheckStyle());