Back to Devexpress

CalculateDocumentVariableEventArgs.Value Property

officefileapi-devexpress-dot-xtrarichedit-dot-calculatedocumentvariableeventargs.md

latest5.2 KB
Original Source

CalculateDocumentVariableEventArgs.Value Property

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

Declaration

csharp
public object Value { get; set; }
vb
Public Property Value As Object

Property Value

TypeDescription
Object

An object that is inserted into a document in place of the DOCVARIABLE field.

|

Remarks

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

csharp
e.Value = result;
e.Handled = true;

how-to-use-docvariable-fields/CS/DocumentVariablesExample/Form1.cs#L77

csharp
if ((location.Trim() == String.Empty) || (location.Contains("<"))) {
    e.Value = " ";
    e.Handled = true;

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

csharp
{
    e.Value = " ";
    e.Handled = true;

word-document-api-insert-dynamic-content/CS/Program.cs#L32

csharp
e.KeepLastParagraph = true;
e.Value = GenerateRssFeed();
if (e.Value != null)

wpf-richedit-use-docvariable-fields/CS/MainWindow.xaml.cs#L76

csharp
if ((location.Trim() == String.Empty) || (location.Contains("<"))) {
    e.Value = " ";
    e.Handled = true;

winforms-richedit-create-a-master-detail-report/VB/RichEditMasterDetailMailMerge/Form1.vb#L89

vb
e.Value = result
e.Handled = True

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

vb
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

vb
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

vb
e.KeepLastParagraph = True
e.Value = GenerateRssFeed()
If e.Value IsNot Nothing Then

wpf-richedit-use-docvariable-fields/VB/MainWindow.xaml.vb#L73

vb
If(Equals(location.Trim(), String.Empty)) OrElse location.Contains("<") Then
    e.Value = " "
    e.Handled = True

See Also

CalculateDocumentVariableEventArgs Class

CalculateDocumentVariableEventArgs Members

DevExpress.XtraRichEdit Namespace