Back to Devexpress

FormField.Name Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-formfield-7b8ea31d.md

latest4.5 KB
Original Source

FormField.Name Property

Gets or sets the name of the bookmark associated with the current FormField object.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
string Name { get; set; }
vb
Property Name As String

Property Value

TypeDescription
String

A string that is the form field’s name.

|

Remarks

The Name value is equal to the name of the bookmark associated with the current FormField object. Access the document’s bookmark collection using the SubDocument.Bookmarks property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Name property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/FormFields.cs#L19

csharp
DevExpress.XtraRichEdit.API.Native.CheckBox checkBox = document.FormFields.InsertCheckBox(currentPosition);
checkBox.Name = "check1";
checkBox.State = CheckBoxState.Checked;

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/FormFieldsActions.cs#L17

csharp
DevExpress.XtraRichEdit.API.Native.CheckBox checkBox = document.FormFields.InsertCheckBox(currentPosition);
checkBox.Name = "check1";
checkBox.State = CheckBoxState.Checked;

word-document-api-examples/CS/CodeExamples/FormFieldsActions.cs#L25

csharp
// Specify the checkbox properties.
checkBox.Name = "check1";
checkBox.State = CheckBoxState.Checked;

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/FormFields.vb#L17

vb
Dim checkBox As DevExpress.XtraRichEdit.API.Native.CheckBox = document.FormFields.InsertCheckBox(currentPosition)
checkBox.Name = "check1"
checkBox.State = DevExpress.XtraRichEdit.API.Native.CheckBoxState.Checked

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/FormFieldsActions.vb#L14

vb
Dim checkBox As DevExpress.XtraRichEdit.API.Native.CheckBox = document.FormFields.InsertCheckBox(currentPosition)
checkBox.Name = "check1"
checkBox.State = CheckBoxState.Checked

word-document-api-examples/VB/CodeExamples/FormFieldsActions.vb#L22

vb
' Specify the checkbox properties.
checkBox.Name = "check1"
checkBox.State = DevExpress.XtraRichEdit.API.Native.CheckBoxState.Checked

See Also

FormField Interface

FormField Members

DevExpress.XtraRichEdit.API.Native Namespace