/// <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;
        }
Exemple #2
0
		private void ResetMode()
		{
			Mode = EndOfLineMode.Crlf;
		} 
Exemple #3
0
		/// <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);
		}
Exemple #4
0
 private void ResetMode()
 {
     Mode = EndOfLineMode.Crlf;
 }
Exemple #5
0
 public void ConvertAllLines(EndOfLineMode toMode)
 {
     NativeScintilla.ConvertEols((int)toMode);
 }