[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.SetPdfEnum

SetPdfEnum Method

SetPdfEnum<T>(IPdfDict, PdfName, PdfEnum<T>?, T?)

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.

Declaration
public static void SetPdfEnum<T>(this IPdfDict dict, PdfName key, PdfEnum<T>? value, T? defValue) where T : struct
Public Shared Sub SetPdfEnum(Of T As Structure)(dict As IPdfDict, key As PdfName, value As PdfEnum(Of T)?, defValue As T?)
Parameters
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.

Type Parameters
Name Description
T