Back to Devexpress

DocVariableValue.Current Field

officefileapi-devexpress-dot-xtrarichedit-dot-docvariablevalue.md

latest2.9 KB
Original Source

DocVariableValue.Current Field

Specifies the current value of the DOCVARIABLE field.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public static readonly DocVariableValue Current
vb
Public Shared ReadOnly Current As DocVariableValue

Field Value

TypeDescription
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

csharp
case "LOCATION":
    if (location == "DO NOT CHANGE!") e.Value = DocVariableValue.Current;
    break;

word-document-api-use-docvariable-fields/CS/Program.cs#L66

csharp
case "LOCATION":
    if (location == "DO NOT CHANGE!") e.Value = DocVariableValue.Current;
    break;

how-to-use-docvariable-fields/VB/DocumentVariablesExample/Form1.vb#L87

vb
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

vb
Case "LOCATION"
    If Equals(location, "DO NOT CHANGE!") Then e.Value = DocVariableValue.Current
Case Else

See Also

DocVariableValue Class

DocVariableValue Members

DevExpress.XtraRichEdit Namespace