[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetRect

GetRect Method

GetRect(IPdfDict, PdfName, RectangleF)

Gets the RectangleF associated with the specified key (in a PDF a RectangleF should be represented as an array of 4 floats).

Gets defValue if the value does not exist or cannot be converted to a RectangleF.

Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value cannot be converted to a RectangleF.
Declaration
public static RectangleF GetRect(this IPdfDict dict, PdfName key, RectangleF defValue)
Public Shared Function GetRect(dict As IPdfDict, key As PdfName, defValue As RectangleF) As RectangleF
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key of the value to get.

RectangleF defValue

The default value.

Returns
Type Description
RectangleF

The value associated with the specified key.

GetRect(IPdfDict, PdfName, RectangleF?)

Gets the RectangleF associated with the specified key (in a PDF a RectangleF should be represented as an array of 4 floats).

Gets defValue if the value does not exist or cannot be converted to a RectangleF.

Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value cannot be converted to a RectangleF.
Declaration
public static RectangleF? GetRect(this IPdfDict dict, PdfName key, RectangleF? defValue)
Public Shared Function GetRect(dict As IPdfDict, key As PdfName, defValue As RectangleF?) As RectangleF?
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key of the value to get.

RectangleF? defValue

The default value.

Returns
Type Description
RectangleF?

The value associated with the specified key.