Image.RemovePropertyItem(Int32) 方法
定义
public:
void RemovePropertyItem(int propid);
public void RemovePropertyItem (int propid);
member this.RemovePropertyItem : int -> unit
Public Sub RemovePropertyItem (propid As Integer)
参数
- propid
- Int32
要移除的属性项的 ID。The ID of the property item to remove.
例外
该图像不包含请求的属性项。The image does not contain the requested property item.
- 或 --or-
该图像的图像格式不支持属性项。The image format for this image does not support property items.
注解
由于 PropertyItem 类没有公共构造函数,因此很难设置属性项。It is difficult to set property items, because the PropertyItem class has no public constructors. 解决此限制的一种方法是 PropertyItem 通过检索 PropertyItems 属性值或调用 GetPropertyItem Image 已有属性项的的方法获取。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. 然后,可以设置的字段并将 PropertyItem 其传递给 SetPropertyItem 。Then you can set the fields of the PropertyItem and pass it to SetPropertyItem.