PagesChangedEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Documents / PagesChangedEventArgs.cs / 1 / PagesChangedEventArgs.cs

                            //---------------------------------------------------------------------------- 
//
// Copyright (C) Microsoft Corporation.  All rights reserved.
//
// File: PagesChangedEventArgs.cs 
//
// Description: PagesChanged event. 
// 
// History:
//  08/29/2005 : grzegorz - 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 : grzegorz - 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