GdPicture.NET.14.API
GdPicture14 Namespace / GdPicturePDF Class / GridSplit Method / GridSplit(IEnumerable<Single>,IEnumerable<Single>,PdfGridSplitOrdering) Method
An IEnumerable of row stop values expressed in percentage of page height. Values are expected to be inside 0 to 100 range and sorted incrementaly.
An IEnumerable of column stop values expressed in percentage of page width. Values are expected to be inside 0 to 100 range and sorted incrementaly.
Member of the PdfGridSplitOrdering enumeration specifying ordering of the splitted page regions."
Example





In This Topic
GridSplit(IEnumerable<Single>,IEnumerable<Single>,PdfGridSplitOrdering) Method
In This Topic
Splits the curently selected page into separate new pages according to regions defined by grid. The grid is defined by row and column stops.
Syntax
'Declaration
 
Public Overloads Function GridSplit( _
   ByVal RowStops As IEnumerable(Of Single), _
   ByVal ColStops As IEnumerable(Of Single), _
   ByVal Ordering As PdfGridSplitOrdering _
) As GdPictureStatus
public GdPictureStatus GridSplit( 
   IEnumerable<float> RowStops,
   IEnumerable<float> ColStops,
   PdfGridSplitOrdering Ordering
)
public function GridSplit( 
    RowStops: IEnumerable;
    ColStops: IEnumerable;
    Ordering: PdfGridSplitOrdering
): GdPictureStatus; 
public function GridSplit( 
   RowStops : IEnumerable,
   ColStops : IEnumerable,
   Ordering : PdfGridSplitOrdering
) : GdPictureStatus;
public: GdPictureStatus GridSplit( 
   IEnumerable<float>* RowStops,
   IEnumerable<float>* ColStops,
   PdfGridSplitOrdering Ordering
) 
public:
GdPictureStatus GridSplit( 
   IEnumerable<float>^ RowStops,
   IEnumerable<float>^ ColStops,
   PdfGridSplitOrdering Ordering
) 

Parameters

RowStops
An IEnumerable of row stop values expressed in percentage of page height. Values are expected to be inside 0 to 100 range and sorted incrementaly.
ColStops
An IEnumerable of column stop values expressed in percentage of page width. Values are expected to be inside 0 to 100 range and sorted incrementaly.
Ordering
Member of the PdfGridSplitOrdering enumeration specifying ordering of the splitted page regions."

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.

We strongly recommend always checking this status first.

Remarks
This method is only allowed for use with non-encrypted documents.

Be aware that the values of row and column stops are expected to be a percentage in range from 0 to 100 and sorted incrementaly in the IEnumerable.

Example
How to GridSplit specified page of loaded PDF document.

	
See Also