[]
Sets the nullable PdfEnum<TEnum> value associated with the specified key.
If the value is null or is equal to defValue,
removes the key from the dictionary.
Note! The method converts a PdfEnum<TEnum> to the PdfName.
public static void SetPdfEnum<T>(this IPdfDict dict, PdfName key, PdfEnum<T>? value, T? defValue) where T : struct
| Type | Name | Description |
|---|---|---|
| IPdfDict | dict | The current dictionary. |
| PdfName | key | The key identifying the value. |
| PdfEnum<T>? | value | The value to set. |
| T? | defValue | The default value. |
| Name | Description |
|---|---|
| T |