officefileapi-devexpress-dot-xtrarichedit-dot-docvariablevalue.md
Specifies the current value of the DOCVARIABLE field.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public static readonly DocVariableValue Current
Public Shared ReadOnly Current As DocVariableValue
| Type | Description |
|---|---|
| DocVariableValue |
The current field value.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the Current field.
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.
how-to-use-docvariable-fields/CS/DocumentVariablesExample/Form1.cs#L89
case "LOCATION":
if (location == "DO NOT CHANGE!") e.Value = DocVariableValue.Current;
break;
word-document-api-use-docvariable-fields/CS/Program.cs#L66
case "LOCATION":
if (location == "DO NOT CHANGE!") e.Value = DocVariableValue.Current;
break;
how-to-use-docvariable-fields/VB/DocumentVariablesExample/Form1.vb#L87
Case "LOCATION"
If Equals(location, "DO NOT CHANGE!") Then e.Value = DocVariableValue.Current
Case Else
word-document-api-use-docvariable-fields/VB/Program.vb#L52
Case "LOCATION"
If Equals(location, "DO NOT CHANGE!") Then e.Value = DocVariableValue.Current
Case Else
See Also