OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / interop / SourceData / Chapter.cs
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
4 // </copyright>\r
5 // <summary>\r
6 //   An object representing a Chapter aosciated with a Title, in a DVD\r
7 // </summary>\r
8 // --------------------------------------------------------------------------------------------------------------------\r
9 \r
10 namespace HandBrake.Interop.SourceData\r
11 {\r
12     using System;\r
13 \r
14     /// <summary>\r
15     /// An object representing a Chapter aosciated with a Title, in a DVD\r
16     /// </summary>\r
17     public class Chapter\r
18     {\r
19         /// <summary>\r
20         /// Gets or sets the number of this Chapter, in regards to its parent Title\r
21         /// </summary>\r
22         public int ChapterNumber { get; set; }\r
23 \r
24         /// <summary>\r
25         /// Gets or sets the length in time this Chapter spans\r
26         /// </summary>\r
27         public TimeSpan Duration { get; set; }\r
28 \r
29         /// <summary>\r
30         /// Override of the ToString method to make this object easier to use in the UI\r
31         /// </summary>\r
32         /// <returns>A string formatted as: {chapter #}</returns>\r
33         public override string ToString()\r
34         {\r
35             return this.ChapterNumber.ToString();\r
36         }\r
37     }\r
38 }