Back to Devexpress

CalculateDocumentVariableEventArgs.Handled Property

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

latest4.7 KB
Original Source

CalculateDocumentVariableEventArgs.Handled Property

Gets or sets whether the default action is required.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public bool Handled { get; set; }
vb
Public Property Handled As Boolean

Property Value

TypeDescription
Boolean

true if no default action is necessary; otherwise, false.

|

Remarks

Set the Handled property to true , to prevent the default actions associated with the this event. In this case, only the event handler code is executed.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Handled 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#L96

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

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

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

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

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

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

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

word-document-api-create-master-detail-report/CS/Program.cs#L75

csharp
e.Value = pictureProcessor;
    e.Handled = true;
}

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

vb
e.Value = result
    e.Handled = True
End If

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

vb
e.Value = " "
e.Handled = True
Return

word-document-api-use-docvariable-fields/VB/Program.vb#L42

vb
e.Value = " "
e.Handled = True
Return

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

vb
e.Value = " "
e.Handled = True
Return

word-document-api-create-master-detail-report/VB/Program.vb#L75

vb
e.Value = pictureProcessor
    e.Handled = True
End Using

See Also

CalculateDocumentVariableEventArgs Class

CalculateDocumentVariableEventArgs Members

DevExpress.XtraRichEdit Namespace