[]
Gets the nullable PdfEnum<TEnum> value associated with the specified key.
If the value does not exist returns defValue
(which can be null).
public static PdfEnum<T>? GetPdfEnum<T>(this IPdfDict dict, PdfName key, T? defValue) where T : struct
Public Shared Function GetPdfEnum(Of T As Structure)(dict As IPdfDict, key As PdfName, defValue As T?) As PdfEnum(Of T)?
Type | Name | Description |
---|---|---|
IPdfDict | dict | The current dictionary. |
PdfName | key | The key identifying the value. |
T? | defValue | The default value. |
Type | Description |
---|---|
PdfEnum<T>? | The value associated with the specified key, or |
Name | Description |
---|---|
T |
Gets the PdfEnum<TEnum> value associated with the specified key.
If the value does not exist returns defValue
.
public static PdfEnum<T> GetPdfEnum<T>(this IPdfDict dict, PdfName key, T defValue) where T : struct
Public Shared Function GetPdfEnum(Of T As Structure)(dict As IPdfDict, key As PdfName, defValue As T) As PdfEnum(Of T)
Type | Name | Description |
---|---|---|
IPdfDict | dict | The current dictionary. |
PdfName | key | The key identifying the value. |
T | defValue | The default value. |
Type | Description |
---|---|
PdfEnum<T> | The value associated with the specified key, or |
Name | Description |
---|---|
T |