PropertyItem.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CommonUI / System / Drawing / Advanced / PropertyItem.cs / 1 / PropertyItem.cs

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

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

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.
                        

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