Gets the total number of items within a data range (if any). This is a dependency property.
Namespace: MindFusion.Reporting.Silverlight
Assembly: MindFusion.Reporting.Silverlight
C# Copy Code |
---|
public int RangeItemCount { get; } |
Visual Basic Copy Code |
---|
Public ReadOnly Property RangeItemCount As Integer |
The total number of items in the data range containing this item; or -1 if the item does not belong to a data range or if the report, containing the item, is not laid out.
The most scenario is to use this property in the text of a label, contained in a DataRange, in order to display the total number of elements in this data range.
The following example demonstrates how to use this property in an expression:
XAML Copy Code |
---|
<r:Label Text="[RangeItemCurrent()] of [RangeItemCount()]" /> |
RangeItemCurrent and RangeItemCount are a special functions, which can be used in expressions. They simply return the value of the RangeItemCurrent and RangeItemCount properties respectively.