officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-formfield-7b8ea31d.md
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
string Name { get; set; }
Property Name As String
| Type | Description |
|---|---|
| String |
A string that is the form field’s name.
|
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
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
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
// Specify the checkbox properties.
checkBox.Name = "check1";
checkBox.State = CheckBoxState.Checked;
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/FormFields.vb#L17
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
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
' Specify the checkbox properties.
checkBox.Name = "check1"
checkBox.State = DevExpress.XtraRichEdit.API.Native.CheckBoxState.Checked
See Also