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





Gets the total number of pages in the report this item belongs to. This is a dependency property.

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

 Syntax

C#  Copy Code

public int PageCount { get; }

Visual Basic  Copy Code

Public ReadOnly Property PageCount As Integer

 Property Value

The total number of pages in the report containing this item; or -1 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, in order to display the total number of pages in the report.

 Example

The following example demonstrates how to use this property in an expression:

XAML  Copy Code

<r:Label Text="[PageCurrent()] of [PageCount()]" />

PageCurrent and PageCount are a special functions, which can be used in expressions. They simply return the value of the PageCurrent and PageCount properties respectively.

 See Also

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