[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetRect

TryGetRect Method

TryGetRect(IPdfDict, PdfName, out RectangleF)

Tries to get the RectangleF associated with the specified key (in a PDF a 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 RectangleF.

Declaration
public static bool TryGetRect(this IPdfDict dict, PdfName key, out RectangleF value)
Public Shared Function TryGetRect(dict As IPdfDict, key As PdfName, ByRef value As RectangleF) As Boolean
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key of the value to get.

RectangleF value

OUT: the value associated with the specified key.

Returns
Type Description
bool

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