[]
Gets the nullable enum value at the specified index.
If the value does not exist or cannot be converted to an enum,
returns defValue
(which can be null).
public static T? GetEnum<T>(this IPdfArray array, int index, T? defValue) where T : struct
Public Shared Function GetEnum(Of T As Structure)(array As IPdfArray, index As Integer, defValue As T?) As T?
Type | Name | Description |
---|---|---|
IPdfArray | array | The current array. |
int | index | The value index. |
T? | defValue | The default value. |
Type | Description |
---|---|
T? | The value at the specified index, or |
Name | Description |
---|---|
T |
Gets the enum value at the specified index.
If the value does not exist or cannot be converted to an enum,
returns defValue
.
public static T GetEnum<T>(this IPdfArray array, int index, T defValue) where T : struct
Public Shared Function GetEnum(Of T As Structure)(array As IPdfArray, index As Integer, defValue As T) As T
Type | Name | Description |
---|---|---|
IPdfArray | array | The current array. |
int | index | The value index. |
T | defValue | The default value. |
Type | Description |
---|---|
T | The value at the specified index, or |
Name | Description |
---|---|
T |