SetCheckStyle
Sets widget checkbox style.
Syntax
expression.SetCheckStyle(sStyle);
expression - A variable that represents a ApiCheckboxWidget class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| sStyle | Required | CheckStyle | No description provided. |
Returns
boolean
Example
This example sets checkbox widget check style.
- Code
- Result
let doc = Api.GetDocument();
let page = doc.GetPage(0);
let radiobuttonField = Api.CreateRadiobuttonField([10, 10, 25, 25]);
page.AddObject(radiobuttonField);
let widgets = radiobuttonField.GetAllWidgets();
widgets[0].SetCheckStyle('square');