AppKit.TextKit.Formatter.LanguageFormatter.Reformat C# (CSharp) Méthode

Reformat() public méthode

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
Résultat 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);
		}