using Nikse.SubtitleEdit.Core; // ... public void RemoveEmptyLinesFromSubtitles(Subtitle subtitle) { var removeEmptyLines = new RemoveEmptyLines(); removeEmptyLines.RemoveEmptyLines(subtitle.Paragraphs); }
using Nikse.SubtitleEdit.Core; // ... public void RemoveEmptyLinesFromTextbox(TextBox textBox) { var removeEmptyLines = new RemoveEmptyLines(); textBox.Text = removeEmptyLines.RemoveEmptyLines(textBox.Text); }The `RemoveEmptyLines` method accepts a `string` parameter from the Textbox class. This method returns the textbox text with empty lines removed. Summary: In summary, the Nikse.SubtitleEdit.CoreSubtitleRemoveEmptyLines is a method available in the Subtitle Edit Core library for C#. This method removes empty lines from subtitle text and can be used in a variety of applications, such as removing empty lines in subtitle files and textboxes.