Logo Search packages:      
Sourcecode: f-spot version File versions  Download package

GifCommentTag.cs

//
// GifCommentTag.cs:
//
// Author:
//   Ruben Vermeersch (ruben@savanne.be)
//   Mike Gemuende (mike@gemuende.de)
//
// Copyright (C) 2009 Ruben Vermeersch
// Copyright (C) 2010 Mike Gemuende
//
// This library is free software; you can redistribute it and/or modify
// it  under the terms of the GNU Lesser General Public License version
// 2.1 as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
// USA
//

using System;

using TagLib.Image;

namespace TagLib.Gif
{
      /// <summary>
      ///    Contains the Gif comment.
      /// </summary>
00035       public class GifCommentTag : ImageTag
      {
#region Constructors

            /// <summary>
            ///    Constructor.
            /// </summary>
            /// <param name="value">
            ///    The value of the comment.
            /// </param>
00045             public GifCommentTag (string value)
            {
                  Value = value;
            }

            /// <summary>
            ///    Constructor. Creates a new empty comment.
            /// </summary>
00053             public GifCommentTag () {
                  Value = null;
            }

#endregion

#region Public Properties

            /// <summary>
            ///    The value of the comment represented by the current instance.
            /// </summary>
00064             public string Value { get; set; }

            /// <summary>
            ///    Gets or sets the comment for the image described
            ///    by the current instance.
            /// </summary>
            /// <value>
            ///    A <see cref="string" /> containing the comment of the
            ///    current instace.
            /// </value>
00074             public override string Comment {
                  get { return Value; }
                  set { Value = value; }
            }

#endregion

#region Public Methods

            /// <summary>
            ///    Gets the tag types contained in the current instance.
            /// </summary>
            /// <value>
            ///    Always <see cref="TagTypes.GifComment" />.
            /// </value>
00089             public override TagTypes TagTypes {
                  get { return TagTypes.GifComment; }
            }

            /// <summary>
            ///    Clears the values stored in the current instance.
            /// </summary>
00096             public override void Clear ()
            {
                  Value = null;
            }

#endregion
      }
}

Generated by  Doxygen 1.6.0   Back to index