We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.word InsertCheckBox("CheckBox", true, 0);

Hi ,team.
Aspose.word InsertCheckBox(“CheckBox”, true, 0); in net core ,but the result not I wanted

They should be cheeked like a normal check box .or ,something I wrote was wrong .

QQ截图20180615164141.png (1.9 KB)

thank you. Please give me a quick response . thanks.

@weiwei_si,

You can also insert a checkbox like this:

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

StructuredDocumentTag checkbox = new StructuredDocumentTag(doc, SdtType.Checkbox, MarkupLevel.Inline);
checkbox.Checked = true;
checkbox.Tag = "sdt1";
checkbox.ContentsFont.Bold = true;
checkbox.ContentsFont.Name = "Arial";
checkbox.ContentsFont.Color = Color.Red;
builder.InsertNode(checkbox);

doc.Save("D:\\Temp\\18.6.docx");