Check if this works:
bool is_checked = checkBoxs[0] is CheckedState;
Use another number to verify other checkboxes from this array.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a word document (document.docx) that have more than checkbox.
I want to know which one is check.
I can get all the checkboxes in the document by using
using DocumentFormat.OpenXml.Wordprocessing;
WordprocessingDocument documentFormA = WordprocessingDocument.Open(formALocation, true);
var checkBoxs = documentFormA.MainDocumentPart.Document.Body.Descendants<CheckBoxSymbolType>();
But this is the results that I get
Check if this works:
bool is_checked = checkBoxs[0] is CheckedState;
Use another number to verify other checkboxes from this array.