Class PageOrganizer
Class to handle the collection of pages.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.PdfViewer
Assembly: Syncfusion.PdfViewer.WPF.dll
Syntax
public class PageOrganizer
Properties
RemovePagesCommand
Gets the command that removes the pages based on the array of indexes passed as command parameter.
Declaration
public ICommand RemovePagesCommand { get; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
Examples
if(pdfViewerControl.PageOrganizer.RemovePagesCommand.CanExecute(new int[] { 0, 1 }))
pdfViewerControl.PageOrganizer.RemovePagesCommand.Execute(new int[] { 0, 1 });
See Also
RotatePagesClockwiseCommand
Gets the command that rotates the pages 90 degrees with respect to the current rotation angle in clockwise direction based on the array of indexes passed as command parameter.
Declaration
public ICommand RotatePagesClockwiseCommand { get; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
Examples
if(pdfViewerControl.PageOrganizer.RotatePagesClockwiseCommand.CanExecute( new int[] { 0, 1 } ))
pdfViewerControl.PageOrganizer.RotatePagesClockwiseCommand.Execute( new int[] { 0, 1 } );
See Also
RotatePagesCommand
Gets the command that rotates the pages to specified angle regardless of its current rotation angle based on the array of indexes and thePdfPageRotateAngle passed as command parameter.
Declaration
public ICommand RotatePagesCommand { get; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
Examples
if(pdfViewerControl.PageOrganizer.RotatePagesCommand.CanExecute(new object[] { new int[] { 0, 1 }, PdfPageRotateAngle.RotateAngle180 }))
pdfViewerControl.PageOrganizer.RotatePagesCommand.Execute(new object[] { new int[] { 0, 1 }, PdfPageRotateAngle.RotateAngle180 });
See Also
RotatePagesCounterclockwiseCommand
Gets the command that rotates the pages 90 degrees with respect to the current rotation angle in counterclockwise direction based on the array of indexes passed as command parameter.
Declaration
public ICommand RotatePagesCounterclockwiseCommand { get; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
Examples
if(pdfViewerControl.PageOrganizer.RotatePagesCounterclockwiseCommand.CanExecute( new int[] { 0, 1 } ))
pdfViewerControl.PageOrganizer.RotatePagesCounterclockwiseCommand.Execute( new int[] { 0, 1 } );
See Also
Methods
GetPageRotation(Int32)
Gets the rotation angle of a page.
Declaration
public PdfPageRotateAngle GetPageRotation(int pageIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | pageIndex | Index of the page. |
Returns
| Type | Description |
|---|---|
| PdfPageRotateAngle | Returns the rotation angle of particular page |
ReArrange(Int32[])
Reorder pages
Declaration
public void ReArrange(int[] orderArray)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | orderArray | The page sequence to arrange the pages. |
RemoveAt(Int32)
Deletes a page at particular index.
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Index of the page. |
RemovePages(Int32[])
Removes a set of pages.
Declaration
public void RemovePages(int[] pagesToBeRemoved)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | pagesToBeRemoved | Indexes of the pages to be removed |
Rotate(Int32[], PdfPageRotateAngle)
Rotates pages at particular indexes in the provided rotation angle.
Declaration
public void Rotate(int[] pageIndexes, PdfPageRotateAngle rotationAngle)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | pageIndexes | The indexes of the pages to be rotated. |
| PdfPageRotateAngle | rotationAngle | The angle to rotate. |
RotateClockwise(Int32[])
Rotates pages at particular indexes in clockwise direction
Declaration
public void RotateClockwise(int[] pageIndexes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | pageIndexes | The indexes of the pages to be rotated. |
RotateCounterclockwise(Int32[])
Rotates pages at particular indexes in counter clockwise direction.
Declaration
public void RotateCounterclockwise(int[] pageIndexes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | pageIndexes | The indexes of the pages to be rotated. |