[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.GcGifReader.GetComment

GetComment Method

GetComment(Encoding, int)

If the Comment Extension is present in the source GIF file this method decodes the comment using the specified Encoding and returns it as a string.

Declaration
public string GetComment(Encoding textEncoding, int commentIndex = 0)
Public Function GetComment(textEncoding As Encoding, Optional commentIndex As Integer = 0) As String
Parameters
Type Name Description
Encoding textEncoding

Character encoding, such as Encoding.ASCII.

int commentIndex

Index of the Comment Extension, from 0 to CommentCount - 1.

Returns
Type Description
string

Comment as a string or null if the source GIF file contains no Comment Extension with given index.