Visual Basic (Declaration) | |
---|---|
Overloads Public Function ReadComment( _ ByVal stream As Stream, _ ByVal pageNumber As Integer, _ ByVal type As RasterCommentMetadataType _ ) As RasterCommentMetadata |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public RasterCommentMetadata ReadComment( Stream stream, int pageNumber, RasterCommentMetadataType type ) |
Managed Extensions for C++ | |
---|---|
public: RasterCommentMetadata ReadComment( Stream* stream, int pageNumber, RasterCommentMetadataType type ) |
C++/CLI | |
---|---|
public: RasterCommentMetadata ReadComment( Stream^ stream, int pageNumber, 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
A RasterCommentMetadata object containing the comment field information. If no such comment is found in the file, this method will return a null reference (Nothing in Visual Basic).For an example, refer to ReadComment.
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.
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