Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayHolderExt Class / TryGetName Method
The current PDF array holder.
The index of the item to return.
OUT: the value at the specified index.
Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog.

In This Topic
    TryGetName Method (IPdfArrayHolderExt)
    In This Topic
    Tries to get the PDF name at the specified index, optionally adding a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value cannot be converted to a PDF name.
    Syntax
    'Declaration
     
    Public Shared Function TryGetName( _
       ByVal pah As IPdfArrayHolder, _
       ByVal index As System.Integer, _
       ByRef value As System.String, _
       Optional ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetName( 
       IPdfArrayHolder pah,
       System.int index,
       out System.string value,
       System.bool addWarning
    )

    Parameters

    pah
    The current PDF array holder.
    index
    The index of the item to return.
    value
    OUT: the value at the specified index.
    addWarning
    Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog.

    Return Value

    True if the value can be converted to a PDF name, false otherwise.
    See Also