AppKit.TextKit.Formatter.LanguageFormatter.Reformat C# (CSharp) Method

Reformat() public method

Forces all of the text in the attached NSTextView (the TextEditor property) to have its syntax rehighlighted by re-running the formatter.
public Reformat ( ) : void
return void
		public virtual void Reformat() {
			// Reformat all text in the view control
			var range =new NSRange(0, TextEditor.Value.Length);
			TextEditor.LayoutManager.RemoveTemporaryAttribute(NSStringAttributeKey.ForegroundColor, range);
			HighlightSyntaxRegion(TextEditor.Value, range);
			TextEditor.SetNeedsDisplay (TextEditor.Frame, false);
		}