Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayHolderExt Class / TryGetString 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
    TryGetString Method (IPdfArrayHolderExt)
    In This Topic
    Tries to get the PDF string at the specified index, optionally adding a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value cannot be converted.
    Syntax
    'Declaration
     
    Public Shared Function TryGetString( _
       ByVal pah As IPdfArrayHolder, _
       ByVal index As System.Integer, _
       ByRef value As PdfString, _
       Optional ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetString( 
       IPdfArrayHolder pah,
       System.int index,
       out PdfString 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 string, false otherwise.
    See Also