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
C# Copy Code |
---|
public int PageCount { get; } |
Visual Basic Copy Code |
---|
Public ReadOnly Property PageCount As Integer |
The total number of pages in the report containing this item; or -1 if the report, containing the item, is not laid out.
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.
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.