[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfArrayExt.TryAsRect

TryAsRect Method

TryAsRect(IPdfArray, out IPdfNumber, out IPdfNumber, out IPdfNumber, out IPdfNumber)

Tries to convert the array to rectangle, the array should have 4 elements and all are numbers.

Declaration
public static bool TryAsRect(this IPdfArray array, out IPdfNumber left, out IPdfNumber bottom, out IPdfNumber right, out IPdfNumber top)
Parameters
Type Name Description
IPdfArray array

The current array.

IPdfNumber left

OUT: The X of left-bottom corner.

IPdfNumber bottom

OUT: The Y of left-bottom corner.

IPdfNumber right

OUT: The X of right-top corner.

IPdfNumber top

OUT: The Y of right-top corner.

Returns
Type Description
bool