DocumentApplicationState.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / TrustUi / MS / Internal / documents / Application / DocumentApplicationState.cs / 1 / DocumentApplicationState.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// Description: Represents the current UI state of the application. 
// 
// History:
//  06/24/2005 - [....] created 
//
//---------------------------------------------------------------------------

using MS.Internal.PresentationUI; 
using System;
 
namespace MS.Internal.Documents.Application 
{
    [Serializable] 
    [FriendAccessAllowed]
    internal struct DocumentApplicationState
    {
        //----------------------------------------------------- 
        //
        //  Constructors 
        // 
        //-----------------------------------------------------
        ///  
        /// Constructor
        /// 
        /// Zoom value
        /// Horizontal offset within the document 
        /// Vertical offset within the document
        /// Number of adjacent pages displayed 
        public DocumentApplicationState(double zoom, double horizontalOffset, double verticalOffset, 
            int maxPagesAcross)
        { 
            // set local values
            _zoom = zoom;
            _horizontalOffset = horizontalOffset;
            _verticalOffset = verticalOffset; 
            _maxPagesAcross = maxPagesAcross;
        } 
 
        //------------------------------------------------------
        // 
        //  Public Properties
        //
        //-----------------------------------------------------
 
        #region Public Properties
 
        ///  
        /// Zoom value
        ///  
        public double Zoom
        {
            get
            { 
                return _zoom;
            } 
        } 

        ///  
        /// Horizontal offset within the document
        /// 
        public double HorizontalOffset
        { 
            get
            { 
                return _horizontalOffset; 
            }
        } 

        /// 
        /// Vertical offset within the document
        ///  
        public double VerticalOffset
        { 
            get 
            {
                return _verticalOffset; 
            }
        }

        ///  
        /// Number of adjacent pages displayed
        ///  
        public int MaxPagesAcross 
        {
            get 
            {
                return _maxPagesAcross;
            }
        } 

        #endregion Public Properties 
 
        //------------------------------------------------------
        // 
        //  Private Fields
        //
        //------------------------------------------------------
 
        #region Private Fields
        private double      _zoom; 
        private double      _horizontalOffset; 
        private double      _verticalOffset;
        private int         _maxPagesAcross; 
        #endregion Private Fields
    }

} 

// 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