CosPdfDictionary.Remove

Remove(string)

CosPdfDictionary 中移除具有指定键的元素。

public bool Remove(string key)
参数类型描述
key字符串要移除的元素的键。

返回值

如果元素成功移除,则返回 true;否则返回 false。如果在原始字典中未找到键,或者键不可编辑,则此方法也返回 false。

另请参阅


Remove(KeyValuePair<string, ICosPdfPrimitive>)

CosPdfDictionary 中移除特定对象的第一次出现。

public bool Remove(KeyValuePair<string, ICosPdfPrimitive> item)
参数类型描述
itemKeyValuePair`2要从 CosPdfDictionary 中移除的对象。

返回值

如果 item 成功从 CosPdfDictionary 中移除,则返回 true;否则返回 false。如果在原始 CosPdfDictionary 中未找到 item,则此方法也返回 false。

另请参阅