MetafileEditor.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Drawing / System / Drawing / Design / MetafileEditor.cs / 1 / MetafileEditor.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Drawing.Design { 
    using System.Runtime.Serialization.Formatters; 

    using System.Diagnostics; 
    using System;
    using System.IO;
    using System.Collections;
    using System.ComponentModel; 
    using System.Windows.Forms;
    using System.Drawing; 
    using System.Drawing.Imaging; 

    ///  
    /// 
    /// 
    ///     Extends Image's editor class to provide default file searching for metafile (.emf)
    ///     files. 
    /// 
    [System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand, Flags=System.Security.Permissions.SecurityPermissionFlag.UnmanagedCode)] 
    [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.InheritanceDemand, Name="FullTrust")] 
    [System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.LinkDemand, Name="FullTrust")]
    public class MetafileEditor : ImageEditor { 

        /// 
        /// 
        ///    [To be supplied.] 
        /// 
        protected override string GetFileDialogDescription() { 
            return SR.GetString(SR.metafileFileDescription); 
        }
 
        /// 
        /// 
        ///    [To be supplied.]
        ///  
        protected override string[] GetExtensions() {
            return new string[] { "emf","wmf" }; 
        } 

        ///  
        /// 
        ///    [To be supplied.]
        /// 
        protected override Image LoadFromStream(Stream stream) { 
            return new Metafile(stream);
        } 
    } 
}

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