XpsSerializerFactory.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 / SerializerFactory / XpsSerializerFactory.cs / 1 / XpsSerializerFactory.cs

                            //---------------------------------------------------------------------------- 
//
// 
//    Copyright (C) Microsoft Corporation.  All rights reserved.
//  
//
// 
// Description: Implements a Plug-in document serializer factory for the XpsDocumentWriter 
//
//              See spec at  
//
// History:
//  07/16/2005 : [....] - Created
// 
//---------------------------------------------------------------------------
namespace System.Windows.Xps.Serialization 
{ 
    using System;
    using System.IO; 
    using System.Printing;
    using System.Windows.Xps;
    using System.Windows.Documents.Serialization;
    using System.Windows.Xps.Serialization; 

    ///  
    /// SerializerFactory is the factory class for the SerializerWriter that wraps an XPSDocumentSerializer 
    /// 
    public sealed class XpsSerializerFactory : ISerializerFactory 
    {
        #region Constructors
        /// 
        /// creates a SerializerFactory 
        /// 
        public XpsSerializerFactory() 
        { 
        }
 
        #endregion

        #region ISerializerFactory Implementation
        ///  
        /// Create a SerializerWriter on the passed in stream
        ///  
        public SerializerWriter CreateSerializerWriter(Stream stream) 
        {
            return new XpsSerializerWriter(stream); 
        }
        /// 
        /// Return the DisplayName of the serializer.
        ///  
        public string DisplayName
        { 
            get 
            {
                return ReachSR.Get(ReachSRID.XpsSerializerFactory_DisplayName); 
            }
        }
        /// 
        /// Return the ManufacturerName of the serializer. 
        /// 
        public string ManufacturerName 
        { 
            get
            { 
                return ReachSR.Get(ReachSRID.XpsSerializerFactory_ManufacturerName);
            }
        }
        ///  
        /// Return the ManufacturerWebsite of the serializer.
        ///  
        public Uri ManufacturerWebsite 
        {
            get 
            {
                return new Uri(ReachSR.Get(ReachSRID.XpsSerializerFactory_ManufacturerWebsite));
            }
        } 
        /// 
        /// Return the DefaultFileExtension of the serializer. 
        ///  
        public string DefaultFileExtension
        { 
            get
            {
                return ".xps";
            } 
        }
        #endregion 
    } 
}

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