IsForm
Checks if the content control is a form.
Parameters:
This method doesn't have any parameters.
Returns:
- Type
-
boolean
Example
Copy code
builder.CreateFile("docxf");
var oDocument = Api.GetDocument();
var oParagraph = oDocument.GetElement(0);
var oInlineLvlSdt = Api.CreateInlineLvlSdt();
oInlineLvlSdt.AddText("This is an inline text content control.");
oParagraph.AddInlineLvlSdt(oInlineLvlSdt);
var bForm = oInlineLvlSdt.IsForm();
oParagraph = Api.CreateParagraph();
oParagraph.AddText("The first content control from this document is a form: " + bForm);
oDocument.Push(oParagraph);
builder.SaveFile("docxf", "IsForm.docxf");
builder.CloseFile();
Resulting document