Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
DeletePage Method
See Also 
Leadtools.Codecs Namespace > RasterCodecs Class : DeletePage Method



fileName
A String containing the name of the file from which to delete the page.
page
1-based index of the page to delete. Use -1 to delete the last page. Use 1 to delete the first page.
Deletes the specified page from a multipage file, if the format supports delete operations.

Syntax

Visual Basic (Declaration) 
Public Sub DeletePage( _
   ByVal fileName As String, _
   ByVal page As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterCodecs
Dim fileName As String
Dim page As Integer
 
instance.DeletePage(fileName, page)
C# 
public void DeletePage( 
   string fileName,
   int page
)
C++/CLI 
public:
void DeletePage( 
   String^ fileName,
   int page
) 

Parameters

fileName
A String containing the name of the file from which to delete the page.
page
1-based index of the page to delete. Use -1 to delete the last page. Use 1 to delete the first page.

Example

For an example, refer to Save.

Remarks

The following file formats support delete operations:
  • TIFF (most TIFF formats, including JTIF, but excluding EXIF)
  • PCX
  • Winfax

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also