METAHEADER.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CommonUI / System / Drawing / Advanced / METAHEADER.cs / 2 / METAHEADER.cs

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

namespace System.Drawing.Imaging { 
 
    using System.Diagnostics;
 
    using System.Drawing;
    using System;
    using System.Runtime.InteropServices;
 
    /// 
    ///  
    ///    [To be supplied.] 
    /// 
    [StructLayout(LayoutKind.Sequential, Pack=2)] 
    public sealed class MetaHeader {
        /// SECREVIEW :  The ENHMETAHEADER structure is defined natively as a union with WmfHeader.
        ///              Extreme care should be taken if changing the layout of the corresponding managaed
        ///              structures to minimize the risk of buffer overruns.  The affected managed classes 
        ///              are the following: ENHMETAHEADER, MetaHeader, MetafileHeaderWmf, MetafileHeaderEmf.
        ///              See ASURT#82822 or changes in Metafile.cs@115636 for more information. 
        /// 
        short type;
        short headerSize; 
        short version;
        int size;
        short noObjects;
        int maxRecord; 
        short noParameters;
 
        ///  
        /// 
        ///    Represents the type of the associated 
        /// .
        /// 
        public short Type {
            get { return type; } 
            set { type = value; }
        } 
        ///  
        /// 
        ///    Represents the sizi, in bytes, of the 
        ///    header file.
        /// 
        public short HeaderSize {
            get { return headerSize; } 
            set { headerSize = value; }
        } 
        ///  
        /// 
        ///    Represents the version number of the header 
        ///    format.
        /// 
        public short Version {
            get { return version; } 
            set { version = value; }
        } 
        ///  
        /// 
        ///    Represents the sizi, in bytes, of the 
        ///    associated .
        /// 
        public int Size {
            get { return size; } 
            set { size = value; }
        } 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public short NoObjects {
            get { return noObjects; }
            set { noObjects = value; } 
        }
        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public int MaxRecord {
            get { return maxRecord; }
            set { maxRecord = value; }
        } 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public short NoParameters { 
            get { return noParameters; }
            set { noParameters = value; }
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Drawing.Imaging { 
 
    using System.Diagnostics;
 
    using System.Drawing;
    using System;
    using System.Runtime.InteropServices;
 
    /// 
    ///  
    ///    [To be supplied.] 
    /// 
    [StructLayout(LayoutKind.Sequential, Pack=2)] 
    public sealed class MetaHeader {
        /// SECREVIEW :  The ENHMETAHEADER structure is defined natively as a union with WmfHeader.
        ///              Extreme care should be taken if changing the layout of the corresponding managaed
        ///              structures to minimize the risk of buffer overruns.  The affected managed classes 
        ///              are the following: ENHMETAHEADER, MetaHeader, MetafileHeaderWmf, MetafileHeaderEmf.
        ///              See ASURT#82822 or changes in Metafile.cs@115636 for more information. 
        /// 
        short type;
        short headerSize; 
        short version;
        int size;
        short noObjects;
        int maxRecord; 
        short noParameters;
 
        ///  
        /// 
        ///    Represents the type of the associated 
        /// .
        /// 
        public short Type {
            get { return type; } 
            set { type = value; }
        } 
        ///  
        /// 
        ///    Represents the sizi, in bytes, of the 
        ///    header file.
        /// 
        public short HeaderSize {
            get { return headerSize; } 
            set { headerSize = value; }
        } 
        ///  
        /// 
        ///    Represents the version number of the header 
        ///    format.
        /// 
        public short Version {
            get { return version; } 
            set { version = value; }
        } 
        ///  
        /// 
        ///    Represents the sizi, in bytes, of the 
        ///    associated .
        /// 
        public int Size {
            get { return size; } 
            set { size = value; }
        } 
        ///  
        /// 
        ///    [To be supplied.] 
        /// 
        public short NoObjects {
            get { return noObjects; }
            set { noObjects = value; } 
        }
        ///  
        ///  
        ///    [To be supplied.]
        ///  
        public int MaxRecord {
            get { return maxRecord; }
            set { maxRecord = value; }
        } 
        /// 
        ///  
        ///    [To be supplied.] 
        /// 
        public short NoParameters { 
            get { return noParameters; }
            set { noParameters = value; }
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.

                        

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