MindFusion.Reporting for Silverlight Programmer's Guide
ReportItem.RangeItemCurrent Property
See Also
 





Gets the index of this item within a data range (if any). This is a dependency property.

Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight

 Syntax

C#  Copy Code

public int RangeItemCurrent { get; }

Visual Basic  Copy Code

Public ReadOnly Property RangeItemCurrent As Integer

 Property Value

The 1-based index of this item within its containing data range; or -1 if the item does not belong to a data range or if the report, containing the item, is not laid out.

 Remarks

The most scenario is to use this property in the text of a label, contained in a DataRange, in order to display successive numbering.

 Example

The following example demonstrates how to bind to this property in XAML:

XAML  Copy Code

<r:Label Text="{Binding RangeItemCurrent, RelativeSource={RelativeSource Self}}" />

A shorter version using expression instead of binding will look like the following:

XAML  Copy Code

<r:Label Text="[RangeItemCurrent()]" />

RangeItemCurrent is a special function, which can be used in expressions. It simply returns the value of this property on the current item.

 See Also

ReportItem Members
ReportItem Class
MindFusion.Reporting.Silverlight Namespace
PageCount Property
PageCurrent Property
RangeItemCount Property