Image.RemovePropertyItem(Int32) 方法

定义

从该 Image 移除指定的属性项。

public:
 void RemovePropertyItem(int propid);
public void RemovePropertyItem (int propid);
member this.RemovePropertyItem : int -> unit
Public Sub RemovePropertyItem (propid As Integer)

参数

propid
Int32

要移除的属性项的 ID。

例外

该图像不包含请求的属性项。

  • 或 -

该图像的图像格式不支持属性项。

注解

很难设置属性项,因为 PropertyItem 该类没有公共构造函数。 解决此限制的一种方法是通过检索PropertyItems属性值或调用GetPropertyItem已具有属性项的方法来获取PropertyItem该限制Image。 然后,可以设置 PropertyItem 字段并将其传递给 SetPropertyItem

适用于