Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
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
)
Managed Extensions for 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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also