/// <summary> /// Constructor /// </summary> public SyntaxRichTextBox() { // ReSharper disable once DoNotCallOverridableMethodsInConstructor RegularFont = new Font(Font, FontStyle.Regular); Recognizer = new EfsRecognizer(RegularFont); TextChanged += SyntaxRichTextBox_TextChanged; SelectionChanged += SyntaxRichTextBox_SelectionChanged; CanPaint = true; ApplyPatterns = true; Clean(); }
/// <summary> /// Constructor /// </summary> public ModelDiagramPanel() { Recognizer = new EfsRecognizer(Font); }