System.Drawing.Imaging.PropertyItem Class

Encapsulates a metadata property to be included in an image file. Not inheritable.

See Also: PropertyItem Members

Syntax

public sealed class PropertyItem

Remarks

The data consists of: an identifier, the length (in bytes) of the property, the property type, and a pointer to the property value.

A System.Drawing.Imaging.PropertyItem is not intended to be used as a stand-alone object. A System.Drawing.Imaging.PropertyItem object is intended to be used by classes that are derived from System.Drawing.Image. A System.Drawing.Imaging.PropertyItem object is used to retrieve and to change the metadata of existing image files, not to create the metadata. Therefore, the System.Drawing.Imaging.PropertyItem class does not have a defined Public constructor, and you cannot create an instance of a System.Drawing.Imaging.PropertyItem object.

To work around the absence of a Public constructor, use an existing System.Drawing.Imaging.PropertyItem object instead of creating a new instance of the System.Drawing.Imaging.PropertyItem class. For more information, see System.Drawing.Image.GetPropertyItem(int).

Requirements

Namespace: System.Drawing.Imaging
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0