File: Core\CSharp\System\Windows\Documents\PaginationProgressEventArgs.cs
Project: wpf\src\PresentationCore.csproj (PresentationCore)
//---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation.  All rights reserved.
// 
// File: PaginationProgressEventArgs.cs
//
// Description: PaginationProgress event.
//
// History:  
//  08/29/2005 : Microsoft - created.
//
//---------------------------------------------------------------------------
 
namespace System.Windows.Documents 
{
    /// <summary>
    /// PaginationProgress event handler.
    /// </summary>
    public delegate void PaginationProgressEventHandler(object sender, PaginationProgressEventArgs e);
 
    /// <summary>
    /// Event arguments for the PaginationProgress event.
    /// </summary>
    public class PaginationProgressEventArgs : EventArgs
    {
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="start">Zero-based page number for this first page that has been paginated.</param>
        /// <param name="count">Number of continuous pages paginated.</param>
        public PaginationProgressEventArgs(int start, int count)
        {
            _start = start; 
            _count = count;
        }
 
        /// <summary>
        /// Zero-based page number for this first page that has been paginated.
        /// </summary>
        public int Start
        {
            get { return _start; }
        }
 
        /// <summary>
        /// Number of continuous pages paginated.
        /// </summary>
        public int Count
        {
            get { return _count; }
        }
 
        /// <summary>
        /// Zero-based page number for this first page that has been paginated.
        /// </summary>
        private readonly int _start;
 
        /// <summary>
        /// Number of continuous pages paginated.
        /// </summary>
        private readonly int _count;
    }
}