Skip to main content

SubDocument.FormFields Property

Provides access to the collection of the document’s FormField objects.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v24.1.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

FormFieldCollection FormFields { get; }

Property Value

Type Description
FormFieldCollection

A FormFieldCollection object that is the document’s check box form fields collection.

Remarks

Use the FormFieldCollection.InsertCheckBox method to create a new CheckBox form field.

Example

View Example

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