←Select platform

DeleteCommentAsync Method

Summary

Deletes a comment field from a file.

Syntax

C#
VB
WinRT C#
C++
public IAsyncAction DeleteCommentAsync(  
   ILeadStream stream, 
   int pageNumber, 
   Leadtools.RasterCommentMetadataType type 
) 
Public Function DeleteCommentAsync( _ 
   ByVal stream As ILeadStream, _ 
   ByVal pageNumber As Integer, _ 
   ByVal type As Leadtools.RasterCommentMetadataType _ 
) As IAsyncAction 
public IAsyncAction DeleteCommentAsync(  
   ILeadStream stream, 
   int pageNumber, 
   Leadtools.RasterCommentMetadataType type 
) 
 function Leadtools.Codecs.RasterCodecs.DeleteCommentAsync(  
   stream , 
   pageNumber , 
   type  
) 
public: 
IAsyncAction^ DeleteCommentAsync(  
   ILeadStream^ stream, 
   int pageNumber, 
   Leadtools.RasterCommentMetadataType type 
)  

Parameters

stream
A stream containing the input file data.

pageNumber
1-based index of the page from which to read the comment.

type
The type of comment. Refer to Types of File Comments.

Return Value

An asynchronous delete operation on a RasterCodecs object.

Remarks

Some file formats can contain comments, and some cannot, and each file format has its own set of comment types. When you save a file, the comments in the RasterImage object can be saved in the file. The index into the array (specified using a constant) determines the type of comment.

You can use CommentsSupported to determine whether a certain file format supports tags.

To read all the comments stored in a file, use ReadCommentsAsync.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly