Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayExt Class / TryGetEnum<T> Method
The current array.
The value index.
OUT. When this method returns, contains the enum value.

In This Topic
    TryGetEnum<T> Method (IPdfArrayExt)
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Shared Function TryGetEnum(Of T As {New, Struct})( _
       ByVal array As IPdfArray, _
       ByVal index As System.Integer, _
       ByRef value As T _
    ) As System.Boolean
    public static System.bool TryGetEnum<T>( 
       IPdfArray array,
       System.int index,
       out T value
    )
    where T: new(), struct

    Parameters

    array
    The current array.
    index
    The value index.
    value
    OUT. When this method returns, contains the enum value.

    Type Parameters

    T

    Return Value

    true if value exists; otherwise, false.
    See Also