PropertyItem.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 / CommonUI / System / Drawing / Advanced / PropertyItem.cs / 1 / PropertyItem.cs

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

/*************************************************************************\ 
* 
* Copyright (c) 1998-1999, Microsoft Corp.  All Rights Reserved.
* 
* Module Name:
*
*   PropertyItem.cs
* 
* Abstract:
* 
*   Native GDI+ PropertyItem structure. 
*
* Revision History: 
*
*   3/3/2k [....]
*       Created it.
* 
\**************************************************************************/
 
namespace System.Drawing.Imaging { 
    using System.Runtime.InteropServices;
    using System; 
    using System.Drawing;

    // sdkinc\imaging.h
    ///  
    /// 
    ///    Encapsulates a metadata property to be 
    ///    included in an image file. 
    /// 
    public sealed class PropertyItem { 
        int id;
        int len;
        short type;
        byte[] value; 

        internal PropertyItem() { 
        } 

        ///  
        /// 
        ///    Represents the ID of the property.
        /// 
        public int Id { 
            get { return id; }
            set { id = value; } 
        } 
        /// 
        ///  
        ///    Represents the length of the property.
        /// 
        public int Len {
            get { return len; } 
            set { len = value; }
        } 
        ///  
        /// 
        ///    Represents the type of the property. 
        /// 
        public short Type {
            get { return type; }
            set { type = value; } 
        }
        ///  
        ///  
        ///    Contains the property value.
        ///  
        public byte[] Value {
            get { return this.value; }
            set { this.value = value; }
        } 
    }
} 
 

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