Spire.Office for .NET V. 8.2
Developer Subscription
I have a form field of type "CheckBoxFormField" with the name "Kontrollkaestchen27" and would like to show the checkbox as selected.
II determine the control over its Name.
CodeBehind (C#):
using Spire.Xls;
using Spire.Doc;
using Spire.Doc.Documents;
using Spire.Doc.Fields;
Document _doks = new Document();
Section section = _doks.Sections[0];
CheckBoxFormField formField = section.Body.FormFields.ContainsName["Kontrollkaestchen27"];
formField.Checked = true;
I receive the error message:
Cannot apply indexing with [] to an expression of type 'method group'
What's going wrong?