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);
}