This documentation is archived and is not being maintained.

Image.RemovePropertyItem Method

Removes the specified property item from this Image object.

[Visual Basic]
Public Sub RemovePropertyItem( _
   ByVal propid As Integer _
public void RemovePropertyItem(
 int propid
public: void RemovePropertyItem(
 int propid
public function RemovePropertyItem(
   propid : int


The ID of the property item to remove.

Return Value

This method does not return a value.


If the image does not contain the requested property item or if the image format does not support property items, RemovePropertyItem throws System.ArgumentException with the message, "Property not found."


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Image Class | Image Members | System.Drawing Namespace