Export (0) Print
Expand All

PropertyItem.Type Property

Gets or sets an integer that defines the type of data contained in the Value property.

Namespace:  System.Drawing.Imaging
Assembly:  System.Drawing (in System.Drawing.dll)

public short Type { get; set; }

Property Value

Type: System.Int16
An integer that defines the type of data contained in Value.

The following table shows integers and the types they represent.

Integer

Represented Type

1

Specifies that Value is an array of bytes.

2

Specifies that Value is a null-terminated ASCII string. If you set the type data member to ASCII type, you should set the Len property to the length of the string including the null terminator. For example, the string "Hello" would have a length of 6.

3

Specifies that Value is an array of unsigned short (16-bit) integers.

4

Specifies that Value is an array of unsigned long (32-bit) integers.

5

Specifies that Value data member is an array of pairs of unsigned long integers. Each pair represents a fraction; the first integer is the numerator and the second integer is the denominator.

6

Specifies that Value is an array of bytes that can hold values of any data type.

7

Specifies that Value is an array of signed long (32-bit) integers.

10

Specifies that Value is an array of pairs of signed long integers. Each pair represents a fraction; the first integer is the numerator and the second integer is the denominator.

For more information about property tags, see "Image Property Tag Constants" in the MSDN library at http://msdn.microsoft.com/library.

.NET Framework

Supported in: 4.5.3, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft