officefileapi-devexpress-dot-xtrarichedit-dot-calculatedocumentvariableeventargs.md
Gets or sets the value of the DOCVARIABLE field that fired the event.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
public object Value { get; set; }
Public Property Value As Object
| Type | Description |
|---|---|
| Object |
An object that is inserted into a document in place of the DOCVARIABLE field.
|
Use the Value property to specify the DOCVARIABLE field’s value. You can set this property to the Document or the RichEditDocumentServer object.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Value 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-create-a-master-detail-report/CS/RichEditMasterDetailMailMerge/Form1.cs#L95
e.Value = result;
e.Handled = true;
how-to-use-docvariable-fields/CS/DocumentVariablesExample/Form1.cs#L77
if ((location.Trim() == String.Empty) || (location.Contains("<"))) {
e.Value = " ";
e.Handled = true;
word-document-api-use-docvariable-fields/CS/Program.cs#L53
{
e.Value = " ";
e.Handled = true;
word-document-api-insert-dynamic-content/CS/Program.cs#L32
e.KeepLastParagraph = true;
e.Value = GenerateRssFeed();
if (e.Value != null)
wpf-richedit-use-docvariable-fields/CS/MainWindow.xaml.cs#L76
if ((location.Trim() == String.Empty) || (location.Contains("<"))) {
e.Value = " ";
e.Handled = true;
winforms-richedit-create-a-master-detail-report/VB/RichEditMasterDetailMailMerge/Form1.vb#L89
e.Value = result
e.Handled = True
how-to-use-docvariable-fields/VB/DocumentVariablesExample/Form1.vb#L76
If(Equals(location.Trim(), String.Empty)) OrElse location.Contains("<") Then
e.Value = " "
e.Handled = True
word-document-api-use-docvariable-fields/VB/Program.vb#L41
If(Equals(location.Trim(), String.Empty)) OrElse location.Contains("<") Then
e.Value = " "
e.Handled = True
word-document-api-insert-dynamic-content/VB/Module1.vb#L25
e.KeepLastParagraph = True
e.Value = GenerateRssFeed()
If e.Value IsNot Nothing Then
wpf-richedit-use-docvariable-fields/VB/MainWindow.xaml.vb#L73
If(Equals(location.Trim(), String.Empty)) OrElse location.Contains("<") Then
e.Value = " "
e.Handled = True
See Also
CalculateDocumentVariableEventArgs Class