Back to Devexpress

SubDocument.FormFields Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-subdocument-e145e6f7.md

latest2.7 KB
Original Source

SubDocument.FormFields Property

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

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
FormFieldCollection FormFields { get; }
vb
ReadOnly Property FormFields As FormFieldCollection

Property Value

TypeDescription
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

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

SubDocument Interface

SubDocument Members

DevExpress.XtraRichEdit.API.Native Namespace