/// <summary> /// Set the document line-ending style. /// </summary> /// <param name="ending">A line-ending style.</param> /// <returns>Always returns true.</returns> public bool SetLineEnding(EndOfLineMode ending) { scintilla.NativeInterface.ConvertEols((int)ending); scintilla.EndOfLine.Mode = ending; LineEnding = ending; UpdateCursorPosition(); return true; }
private void ResetMode() { Mode = EndOfLineMode.Crlf; }
/// <summary> /// Converts all lines in the document to the given mode. /// </summary> /// <param name="toMode">The EndOfLineMode to convert all lines to </param> public void ConvertAllLines(EndOfLineMode toMode) { NativeScintilla.ConvertEols((int)toMode); }
public void ConvertAllLines(EndOfLineMode toMode) { NativeScintilla.ConvertEols((int)toMode); }