PagesChangedEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Documents / PagesChangedEventArgs.cs / 1305600 / PagesChangedEventArgs.cs

                            //---------------------------------------------------------------------------- 
//
// Copyright (C) Microsoft Corporation.  All rights reserved.
//
// File: PagesChangedEventArgs.cs 
//
// Description: PagesChanged event. 
// 
// History:
//  08/29/2005 : [....] - created. 
//
//---------------------------------------------------------------------------

namespace System.Windows.Documents 
{
    ///  
    /// PagesChanged event handler. 
    /// 
    public delegate void PagesChangedEventHandler(object sender, PagesChangedEventArgs e); 

    /// 
    /// Event arguments for the PagesChanged event.
    ///  
    public class PagesChangedEventArgs : EventArgs
    { 
        ///  
        /// Constructor.
        ///  
        /// Zero-based page number for this first page that has changed.
        /// Number of continuous pages changed.
        public PagesChangedEventArgs(int start, int count)
        { 
            _start = start;
            _count = count; 
        } 

        ///  
        /// Zero-based page number for this first page that has changed.
        /// 
        public int Start
        { 
            get { return _start; }
        } 
 
        /// 
        /// Number of continuous pages changed. If the number of pages affected is 
        /// unknown, then this value will be Integer.MaxValue.
        /// 
        public int Count
        { 
            get { return _count; }
        } 
 
        /// 
        /// Zero-based page number for this first page that has changed. 
        /// 
        private readonly int _start;

        ///  
        /// Number of continuous pages changed. If the number of pages affected is
        /// unknown, then this value will be Integer.MaxValue. 
        ///  
        private readonly int _count;
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//---------------------------------------------------------------------------- 
//
// Copyright (C) Microsoft Corporation.  All rights reserved.
//
// File: PagesChangedEventArgs.cs 
//
// Description: PagesChanged event. 
// 
// History:
//  08/29/2005 : [....] - created. 
//
//---------------------------------------------------------------------------

namespace System.Windows.Documents 
{
    ///  
    /// PagesChanged event handler. 
    /// 
    public delegate void PagesChangedEventHandler(object sender, PagesChangedEventArgs e); 

    /// 
    /// Event arguments for the PagesChanged event.
    ///  
    public class PagesChangedEventArgs : EventArgs
    { 
        ///  
        /// Constructor.
        ///  
        /// Zero-based page number for this first page that has changed.
        /// Number of continuous pages changed.
        public PagesChangedEventArgs(int start, int count)
        { 
            _start = start;
            _count = count; 
        } 

        ///  
        /// Zero-based page number for this first page that has changed.
        /// 
        public int Start
        { 
            get { return _start; }
        } 
 
        /// 
        /// Number of continuous pages changed. If the number of pages affected is 
        /// unknown, then this value will be Integer.MaxValue.
        /// 
        public int Count
        { 
            get { return _count; }
        } 
 
        /// 
        /// Zero-based page number for this first page that has changed. 
        /// 
        private readonly int _start;

        ///  
        /// Number of continuous pages changed. If the number of pages affected is
        /// unknown, then this value will be Integer.MaxValue. 
        ///  
        private readonly int _count;
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK