Back to Devexpress

FormFieldCollection Interface

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-5c528348.md

latest2.6 KB
Original Source

FormFieldCollection Interface

The collection of FormField objects.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public interface FormFieldCollection :
    ReadOnlyFormFieldCollection,
    ISimpleCollection<FormField>,
    IEnumerable<FormField>,
    IEnumerable,
    ICollection
vb
Public Interface FormFieldCollection
    Inherits ReadOnlyFormFieldCollection,
             ISimpleCollection(Of FormField),
             IEnumerable(Of FormField),
             IEnumerable,
             ICollection

The following members return FormFieldCollection objects:

Remarks

A FormField object represents a form field’s result.

Access the FormFieldCollection collection using the SubDocument.FormFields property.

Example

View Example

csharp
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";
vb
Dim currentPosition As DocumentPosition = server.Document.Range.Start
Dim checkBox As DevExpress.XtraRichEdit.API.Native.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

FormFieldCollection Members

DevExpress.XtraRichEdit.API.Native Namespace