LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
DeletePage(Stream,Int32) Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnCodecs Class > DeletePage Method : DeletePage(Stream,Int32) Method



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

The DeletePage(Stream,Int32) Method supports WPF/Silverlight.

The DeletePage(Stream,Int32) Method is available in LEADTOOLS Document and Medical Imaging toolkits.

stream
The System.IO.Stream from which to delete the page.
page
Number of the page to be deleted. 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
)
C++/CLI 
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 be deleted. The page number is 1-based. Therefore, the first page is page 1, the second page is page 2, etc.

Example

For C#/VB examples, refer to DeletePage(String,Int32).

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 AnnCodecs.GetInformation.

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

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

DeletePage(Stream,Int32) requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.