Nikse.SubtitleEdit.Logic is a package library in C# which provides a set of classes for managing subtitles in various formats.
Example 1: Reading a Subtitle from File
Subtitle subtitle = new Subtitle(); subtitle.LoadSubtitle("subtitle.srt");
In this example, the LoadSubtitle method is used to read a subtitle file in SubRip format and load it into an instance of the Subtitle class.
Example 2: Converting Subtitle Formats
Subtitle subtitle = new Subtitle(); subtitle.LoadSubtitle("subtitle.srt"); string outputSubtitle = subtitle.ToText(new SubtitleFormat { Name = "MicroDVD" });
In this example, the ToText method is used to convert the loaded subtitle into the MicroDVD format.
Overall, Nikse.SubtitleEdit.Logic Subtitle provides a powerful set of tools for working with subtitles in C#.
C# (CSharp) Nikse.SubtitleEdit.Logic Subtitle - 44 examples found. These are the top rated real world C# (CSharp) examples of Nikse.SubtitleEdit.Logic.Subtitle extracted from open source projects. You can rate examples to help us improve the quality of examples.