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已經具有屬性專案的方法來Image取得 PropertyItem 。 然後您可以設定的欄位, PropertyItem 並將其傳遞至 SetPropertyItem

適用於