[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfArrayExt.TryGetEnum

TryGetEnum Method

TryGetEnum<T>(IPdfArray, int, out T)

Tries to get the enum value at the specified index. If the value does not exist or cannot be converted to an enum, returns false.

Declaration
public static bool TryGetEnum<T>(this IPdfArray array, int index, out T value) where T : struct
Public Shared Function TryGetEnum(Of T As Structure)(array As IPdfArray, index As Integer, ByRef value As T) As Boolean
Parameters
Type Name Description
IPdfArray array

The current array.

int index

The value index.

T value

OUT. When this method returns, contains the enum value.

Returns
Type Description
bool

true if value exists; otherwise, false.

Type Parameters
Name Description
T