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





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

 Syntax

C#  Copy Code

public int RangeItemCount { get; }

Visual Basic  Copy Code

Public ReadOnly Property RangeItemCount As Integer

 Property Value

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.

 Remarks

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.

 Example

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.

 See Also

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