Table of Contents

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

propertyBag IFileTypePropertyBag
key string
value TEnum

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

propertyBag IFileTypePropertyBag
item KeyValuePair<string, TEnum>

Type Parameters

TEnum