/* Subtitle.cs $ This file is part of the HandBrake source code. Homepage: . It may be used under the terms of the GNU General Public License. */ namespace HandBrake.SourceData { /// /// An object that represents a subtitle associated with a Title, in a DVD /// public class Subtitle { /// /// Gets or sets the track number of this Subtitle /// public int TrackNumber { get; set; } /// /// Gets or sets the language (if detected) of this Subtitle /// public string Language { get; set; } /// /// Gets or sets the Langauage Code. /// public string LanguageCode { get; set; } /// /// Gets or sets the subtitle type. /// public SubtitleType SubtitleType { get; set; } /// /// Gets or sets the subtitle source. /// public SubtitleSource SubtitleSource { get; set; } /// /// Override of the ToString method to make this object easier to use in the UI /// /// A string formatted as: {track #} {language} public override string ToString() { return string.Format("{0} {1} ({2})", this.TrackNumber, this.Language, this.SubtitleSource); } public string Display { get { return this.ToString(); } } } }