Skip to main content

IsDropDownList

Checks whether the content control is a drop-down list.

Syntax

expression.IsDropDownList();

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 the content control is a dropdown list.

let doc = Api.GetDocument();
let inlineControl = doc.AddDropDownListContentControl();
let isDropDown = inlineControl.IsDropDownList();
let paragraph = Api.CreateParagraph();
paragraph.AddText("Is this content control a dropdown list? " + isDropDown);
doc.Push(paragraph);