Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
DeletePage(Stream,Int32) Method
See Also 
Leadtools.Annotations Namespace > AnnCodecs Class > DeletePage Method : DeletePage(Stream,Int32) Method




stream
The 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.
Deletes a page from an annotation stream containing multiple pages.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub DeletePage( _
   ByVal stream As Stream, _
   ByVal page As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As AnnCodecs
Dim stream As Stream
Dim page As Integer
 
instance.DeletePage(stream, page)
C# 
public void DeletePage( 
   Stream stream,
   int page
)
Managed Extensions for C++ 
public: void DeletePage( 
   Stream* stream,
   int page
) 
C++/CLI 
public:
void DeletePage( 
   Stream^ stream,
   int page
) 

Parameters

stream
The 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.

Example

For an example, refer to DeletePage.

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.

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

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

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features