[]
        
(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)
Public Shared Function TryAsRect(array As IPdfArray, ByRef left As IPdfNumber, ByRef bottom As IPdfNumber, ByRef right As IPdfNumber, ByRef top As IPdfNumber) As Boolean
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