FormFieldCollection Interface
The collection of FormField objects.
Namespace: DevExpress.XtraRichEdit.API.Native
Assembly: DevExpress.RichEdit.v18.2.Core.dll
Declaration
public interface FormFieldCollection :
ReadOnlyFormFieldCollection,
ISimpleCollection<FormField>,
IEnumerable<FormField>,
IEnumerable,
ICollection
Related API Members
The following members return FormFieldCollection objects:
Remarks
Access the FormFieldCollection collection using the SubDocument.FormFields property.
Example
The following code sample shows how to create a checkbox on a caret’s position:
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-richedit-document-api-e5219
Dim currentPosition As DocumentPosition = document.CaretPosition
Dim checkBox As DevExpress.XtraRichEdit.API.Native.CheckBox = 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