Method SetItem
- Namespace
- PaintDotNet.FileTypes
- Assembly
- PaintDotNet.FileTypes.dll
SetItem<TEnum>(IFileTypePropertyBag, string, TEnum)
Sets the specified key and value in the property bag. The value is converted to a string using its ToString() method. If the key already exists in the property bag then it is overwritten.
public static void SetItem<TEnum>(this IFileTypePropertyBag propertyBag, string key, TEnum value) where TEnum : struct, Enum
Parameters
propertyBagIFileTypePropertyBagkeystringvalueTEnum
Type Parameters
TEnum
SetItem<TEnum>(IFileTypePropertyBag, KeyValuePair<string, TEnum>)
Sets the specified key and value in the property bag. The value is converted to a string using its ToString() method. If the key already exists in the property bag then it is overwritten.
public static void SetItem<TEnum>(this IFileTypePropertyBag propertyBag, KeyValuePair<string, TEnum> item) where TEnum : struct, Enum
Parameters
propertyBagIFileTypePropertyBagitemKeyValuePair<string, TEnum>
Type Parameters
TEnum