[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetPdfEnum

GetPdfEnum Method

GetPdfEnum<T>(IPdfDict, PdfName, T?)

Gets the nullable PdfEnum<TEnum> value associated with the specified key. If the value does not exist returns defValue (which can be null).

Declaration
public static PdfEnum<T>? GetPdfEnum<T>(this IPdfDict dict, PdfName key, T? defValue) where T : struct
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

T? defValue

The default value.

Returns
Type Description
PdfEnum<T>?

The value associated with the specified key, or defValue.

Type Parameters
Name Description
T

GetPdfEnum<T>(IPdfDict, PdfName, T)

Gets the PdfEnum<TEnum> value associated with the specified key. If the value does not exist returns defValue.

Declaration
public static PdfEnum<T> GetPdfEnum<T>(this IPdfDict dict, PdfName key, T defValue) where T : struct
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

T defValue

The default value.

Returns
Type Description
PdfEnum<T>

The value associated with the specified key, or defValue.

Type Parameters
Name Description
T