Documents for Imaging .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcGifReader Class / GetComment Method
Character encoding, such as Encoding.ASCII.
Index of the Comment Extension, from 0 to CommentCount - 1.

In This Topic
    GetComment Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Function GetComment( _
       ByVal textEncoding As System.Text.Encoding, _
       Optional ByVal commentIndex As System.Integer _
    ) As System.String
    public System.string GetComment( 
       System.Text.Encoding textEncoding,
       System.int commentIndex
    )

    Parameters

    textEncoding
    Character encoding, such as Encoding.ASCII.
    commentIndex
    Index of the Comment Extension, from 0 to CommentCount - 1.

    Return Value

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