CheckBox Interface
An interface implementing the check box functionality.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v19.2.Core.dll
Declaration
Remarks
Call the FormFieldCollection.InsertCheckBox method to create a checkbox at a given document position. The CheckBox objects are contained in the FormFieldCollection (can be accessed using the SubDocument.FormFields property). To distinguish checkboxes within the collection, check the collection item’s FormField.FieldType property.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/word-processing-document-api-examples-t418535
DocumentPosition currentPosition = server.Document.Range.Start;
DevExpress.XtraRichEdit.API.Native.CheckBox checkBox = server.Document.FormFields.InsertCheckBox(currentPosition);
checkBox.Name = "check1";
checkBox.State = CheckBoxState.Checked;
checkBox.SizeMode = CheckBoxSizeMode.Auto;
checkBox.HelpTextType = FormFieldTextType.Custom;
checkBox.HelpText = "help text";
See Also