SubDocument.FormFields Property
In This Article
Provides access to the collection of the document’s FormField objects.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v24.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
#Declaration
FormFieldCollection FormFields { get; }
#Property Value
Type | Description |
---|---|
Form |
A Form |
#Remarks
Use the FormFieldCollection.InsertCheckBox method to create a new CheckBox form field.
#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