Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictHolderExt Class / TryGetRect Method
The current PDF dictionary holder.
The key of the value to get.
OUT: the value associated with the specified key.

In This Topic
    TryGetRect Method
    In This Topic
    Tries to get the System.Drawing.RectangleF associated with the specified key (in a PDF a System.Drawing.RectangleF should be represented as an array of 4 floats).

    Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to System.Drawing.RectangleF.

    Syntax
    'Declaration
     
    Public Shared Function TryGetRect( _
       ByVal pdh As IPdfDictHolder, _
       ByVal key As System.String, _
       ByRef value As System.Drawing.RectangleF _
    ) As System.Boolean
    public static System.bool TryGetRect( 
       IPdfDictHolder pdh,
       System.string key,
       out System.Drawing.RectangleF value
    )

    Parameters

    pdh
    The current PDF dictionary holder.
    key
    The key of the value to get.
    value
    OUT: the value associated with the specified key.

    Return Value

    True if the key was found and the value could be converted to a System.Drawing.RectangleF, false otherwise.
    See Also