Back to Devexpress

CreateAreaEventArgs.DetailIndex Property

wpf-devexpress-dot-xpf-dot-printing-dot-createareaeventargs-09d11b12.md

latest4.1 KB
Original Source

CreateAreaEventArgs.DetailIndex Property

Gets or sets the index of a detail row for which the area creation event was called.

Namespace : DevExpress.Xpf.Printing

Assembly : DevExpress.Xpf.Printing.v25.2.dll

NuGet Package : DevExpress.Wpf.Printing

Declaration

csharp
public int DetailIndex { get; }
vb
Public ReadOnly Property DetailIndex As Integer

Property Value

TypeDescription
Int32

An integer value, which represents the index of a detail row.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the DetailIndex 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-hide-specific-export-formats-from-the-document-preview-control/CS/HideExportFormats/MainWindow.xaml.cs#L35

csharp
};
link.CreateDetail += (s, args) => args.Data = data[args.DetailIndex];

reporting-wpf-documentpreviewcontrol-customize-toolbar/CS/MainWindow.xaml.cs#L22

csharp
};
link.CreateDetail += (s, e) => e.Data = data[e.DetailIndex];

reporting-wpf-print-listview-data/CS/Window1.xaml.cs#L29

csharp
void link_CreateDetail(object sender, CreateAreaEventArgs e) {
    e.Data = listView1.Items[e.DetailIndex];
}

reporting-wpf-hide-specific-export-formats-from-the-document-preview-control/VB/HideExportFormats/MainWindow.xaml.vb#L21

vb
link = New SimpleLink With {.DetailTemplate = CType(Resources("dayNameTemplate"), DataTemplate), .DetailCount = data.Length}
AddHandler link.CreateDetail, Sub(s, args) args.Data = data(args.DetailIndex)
Me.preview.DocumentSource = link

reporting-wpf-documentpreviewcontrol-customize-toolbar/VB/MainWindow.xaml.vb#L20

vb
link = New SimpleLink With {.DetailTemplate = CType(Resources("dayNameTemplate"), DataTemplate), .DetailCount = data.Length}
AddHandler link.CreateDetail, Sub(s, e) e.Data = data(e.DetailIndex)
Me.preview.DocumentSource = link

reporting-wpf-print-listview-data/VB/Window1.xaml.vb#L31

vb
Private Sub link_CreateDetail(ByVal sender As Object, ByVal e As CreateAreaEventArgs)
    e.Data = Me.listView1.Items(e.DetailIndex)
End Sub

See Also

CreateAreaEventArgs Class

CreateAreaEventArgs Members

DevExpress.Xpf.Printing Namespace