LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

DeletePage(Stream,Int32) Method






The System.IO.Stream from which to delete the page.
Number of the page to delete. The page number is 1-based. Therefore, the first page is page 1, the second page is page 2, etc.
Deletes a page from an annotation stream containing multiple pages.
Syntax
public void DeletePage( 
   Stream stream,
   int page
)
'Declaration
 
Public Overloads Sub DeletePage( _
   ByVal stream As Stream, _
   ByVal page As Integer _
) 
'Usage
 
Dim instance As AnnCodecs
Dim stream As Stream
Dim page As Integer
 
instance.DeletePage(stream, page)
public void DeletePage( 
   Stream stream,
   int page
)
 function Leadtools.Annotations.AnnCodecs.DeletePage(Stream,Int32)( 
   stream ,
   page 
)
public:
void DeletePage( 
   Stream^ stream,
   int page
) 

Parameters

stream
The System.IO.Stream from which to delete the page.
page
Number of the page to delete. The page number is 1-based. Therefore, the first page is page 1, the second page is page 2, etc.
Remarks

This method can be used to remove annotation pages from a multi-page annotation stream. The page number is 1-based. Therefore, the first page is page 1, the second page is page 2, and so on. This method can be used for all LEAD annotation file formats. To determine the format for a particular LEAD annotation file, use GetInformation(String,AnnCodecsInformation).

Note, you cannot delete a page from an annotation file that has only 1 page.

Example
For an example, refer to DeletePage(String,Int32).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnCodecs Class
AnnCodecs Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.