Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RemovePropertyItem Method

Image.RemovePropertyItem Method

Removes the specified property item from this Image.

Namespace: System.Drawing
Assembly: System.Drawing (in system.drawing.dll)

public void RemovePropertyItem (
	int propid
)
public void RemovePropertyItem (
	int propid
)
public function RemovePropertyItem (
	propid : int
)
Not applicable.

Parameters

propid

The ID of the property item to remove.

Exception typeCondition

ArgumentException

The image does not contain the requested property item.

-or-

The image format for this image does not support property items.

It is difficult to set property items, because the PropertyItem class has no public constructors. One way to work around this restriction is to obtain a PropertyItem by retrieving the PropertyItems property value or calling the GetPropertyItem method of an Image that already has property items. Then you can set the fields of the PropertyItem and pass it to SetPropertyItem.

Windows 98, Windows Server 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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft