IsCheckBox
Checks if the content control is a checkbox.
Syntax
expression.IsCheckBox();
expression
- A variable that represents a ApiInlineLvlSdt class.
Parameters
This method doesn't have any parameters.
Returns
boolean
Example
This example shows how to check if an inline content control is a checkbox.
- Code
- Result
let doc = Api.GetDocument();
let inlineControl = doc.AddCheckBoxContentControl();
let isCheckBox = inlineControl.IsCheckBox();
let paragraph = Api.CreateParagraph();
paragraph.AddText("Is the content control a checkbox? " + isCheckBox);
doc.Push(paragraph);