Here are the examples of the csharp api class Nikse.SubtitleEdit.Core.SubtitleFormats.F4Text.EncodeTimeCode(TimeCode) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: subtitleedit
Source File: F4Text.cs
View license
public static string ToF4Text(Subtitle subtitle)
            var sb = new StringBuilder();
            //double lastEndTimeMilliseconds = -1;
            const string writeFormat = "{0}{1}";
            foreach (Paragraph p in subtitle.Paragraphs)
                // if (p.StartTime.TotalMilliseconds == lastEndTimeMilliseconds)
                sb.AppendFormat(writeFormat, HtmlUtil.RemoveHtmlTags(p.Text, true), EncodeTimeCode(p.EndTime));
                //    sb.Append(string.Format("{0}{1}{2}", EncodeTimeCode(p.StartTime), HtmlUtil.RemoveHtmlTags(p.Text), EncodeTimeCode(p.EndTime)));
                //lastEndTimeMilliseconds = p.EndTime.TotalMilliseconds;
            return sb.ToString().Trim();