Back to Devexpress

DocumentPreviewMouseEventArgs.ElementTag Property

wpf-devexpress-dot-xpf-dot-printing-dot-documentpreviewmouseeventargs-b1d5e16e.md

latest2.4 KB
Original Source

DocumentPreviewMouseEventArgs.ElementTag Property

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

Declaration

csharp
public object ElementTag { get; }
vb
Public ReadOnly Property ElementTag As Object

Property Value

TypeDescription
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

csharp
public void OnPreviewMouseClick(DocumentPreviewMouseEventArgs args) {
    var orderId = args.ElementTag as int?;
    if(!orderId.HasValue)

reporting-wpf-drill-through/VB/Viewer/MainViewModel.vb#L45

vb
Dim orderId_Renamed = CType(args.ElementTag, Integer?)
If Not orderId_Renamed.HasValue Then

See Also

DocumentPreviewMouseEventArgs Class

DocumentPreviewMouseEventArgs Members

DevExpress.Xpf.Printing Namespace