XpsPartBase.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 / Print / Reach / Packaging / XpsPartBase.cs / 1 / XpsPartBase.cs

                            /*++ 

    Copyright (C) 2004 - 2005 Microsoft Corporation
    All rights reserved.
 
    Module Name:
        XpsPartBase.cs 
 
    Abstract:
        This file contains the definition  and implementation 
        for the XpsPartBase class.  This class is the base
        class for all pieces that represent main parts in a
        Xps package such as fixed documents, fixed pages,
        resources, etc. 

    Author: 
        [....] ([....]) 1-November-2004 

    Revision History: 
    Brian Adleberg ([....] ) 12-July-2005 Reach -> Xps
--*/

using System; 
using System.IO.Packaging;
 
namespace System.Windows.Xps.Packaging 
{
    ///  
    ///
    /// 
    public abstract class XpsPartBase
    { 
        #region Constructors
 
        ///  
        /// Constructs the base XpsPartBase instance.
        ///  
        /// 
        /// The xps manager controlling this xps object.
        /// 
        internal 
        XpsPartBase(
            XpsManager    xpsManager 
            ) 
        {
            if (null == xpsManager) 
            {
                throw new ArgumentNullException("xpsManager");
            }
 
            _xpsManager = xpsManager;
        } 
 
        #endregion Constructors
 
        #region Public properties

        /// 
        /// Gets or sets the Uri of the current Xps part. 
        /// 
        public Uri Uri 
        { 
            get
            { 
                return _uri;
            }
            set
            { 
                _uri = value;
            } 
        } 

        #endregion Public properties 

        #region Public methods

        ///  
        /// Closes the XpsPartBase.
        ///  
        internal 
        virtual
        void 
        CommitInternal(
            )
        {
            if (null != _xpsManager) 
            {
                _xpsManager = null; 
            } 
        }
 
        #endregion Public methods

        #region Internal properties
 
        /// 
        /// Gets a reference to the current Xps manager for 
        /// this package. 
        /// 
        internal XpsManager CurrentXpsManager 
        {
            get
            {
                return _xpsManager; 
            }
        } 
 
        #endregion Internal properties
 
        #region Private data

        private XpsManager _xpsManager;
        private Uri _uri; 

        #endregion Private data 
    } 
}

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