1 // --------------------------------------------------------------------------------------------------------------------
\r
2 // <copyright file="Chapter.cs" company="HandBrake Project (http://handbrake.fr)">
\r
3 // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
\r
6 // An object representing a Chapter aosciated with a Title, in a DVD
\r
8 // --------------------------------------------------------------------------------------------------------------------
\r
10 namespace HandBrake.Interop.SourceData
\r
15 /// An object representing a Chapter aosciated with a Title, in a DVD
\r
17 public class Chapter
\r
20 /// Gets or sets the number of this Chapter, in regards to its parent Title
\r
22 public int ChapterNumber { get; set; }
\r
25 /// Gets or sets the length in time this Chapter spans
\r
27 public TimeSpan Duration { get; set; }
\r
30 /// Override of the ToString method to make this object easier to use in the UI
\r
32 /// <returns>A string formatted as: {chapter #}</returns>
\r
33 public override string ToString()
\r
35 return this.ChapterNumber.ToString();
\r