wpf-devexpress-dot-xpf-dot-printing-dot-documentpreviewmouseeventargs-b1d5e16e.md
Gets the Tag property value of the document element for which the corresponding event has been raised.
Namespace : DevExpress.Xpf.Printing
Assembly : DevExpress.Xpf.Printing.v25.2.dll
NuGet Package : DevExpress.Wpf.Printing
public object ElementTag { get; }
Public ReadOnly Property ElementTag As Object
| Type | Description |
|---|---|
| Object |
An object that specifies the tag of the document element.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ElementTag 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.
reporting-wpf-drill-through/CS/Viewer/MainViewModel.cs#L36
public void OnPreviewMouseClick(DocumentPreviewMouseEventArgs args) {
var orderId = args.ElementTag as int?;
if(!orderId.HasValue)
reporting-wpf-drill-through/VB/Viewer/MainViewModel.vb#L45
Dim orderId_Renamed = CType(args.ElementTag, Integer?)
If Not orderId_Renamed.HasValue Then
See Also
DocumentPreviewMouseEventArgs Class