PropertyItem. Type attribute
. NET Framework 2.0Other Versions
- . NET Framework 4.5
- . NET Framework 4
- . NET Framework 3.5
- . NET Framework 3.0
This topic has not been rated-rating this topic
Gets or sets an integer that defines the data type contained in the Value attribute.
Namespace:System. Drawing. Imaging
Assembly:System. Drawing (in
In system. drawing. dll)
Syntax
C # C ++ VB Replication
public short Type { get; set; }
J # copy
/** @property */public short get_Type ()/** @property */public void set_Type (short value)
JScript Replication
public function get Type () : shortpublic function set Type (value : short)
Attribute Value
An integer, definedValueThe data type. Remarks
The following table shows integers and their types.
Integer |
Type |
1 |
SpecifyValueIs a byte array. |
2 |
SpecifyValueIt is a null end ASCII string. If you set the type data member to ASCII type, you should set the Len attribute to include the string length of null termination. For example, the length of the string "Hello" is 6. |
3 |
SpecifyValueIt is an unsigned short (16-bit) integer array. |
4 |
SpecifyValueIt is an unsigned 32-bit long integer array. |
5 |
SpecifyValueThe data member is an unsigned long integer pair array. Each pair represents a score. The first integer is the numerator, and the second integer is the denominator. |
6 |
SpecifyValueIs a byte array that can contain any data type value. |
7 |
SpecifyValueIt is a signed 32-bit long integer array. |
10 |
SpecifyValueIt is an array of signed long integer pairs. Each pair represents a score. The first integer is the numerator, and the second integer is the denominator. |
For more information about Property Tag, see "Image Property Tag Constants" (Image Property Tag constant) in the msdn Library on the http://www.microsoft.com/china/msdn/library ).
Platform
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
. NET Framework does not support all versions of each platform. For a list of supported versions, see system requirements.
Version Information
. NET Framework
Supported by the following versions: 2.0, 1.1, and 1.0