public DocumentManager(ITextEditorAdaptorFactory <TControl> factory) { if (factory == null) { throw new ArgumentNullException("factory"); } this._factory = factory; if (this._factory is IVisualTextEditorAdaptorFactory <TControl, TFont, TColor> ) { this._visualOptions = ((IVisualTextEditorAdaptorFactory <TControl, TFont, TColor>) this._factory).GetDefaultVisualOptions(); } //Wire Up Events this._options.HighlightingToggled += this.HandleHighlightingToggled; this._options.HighlightErrorsToggled += this.HandleHighlightErrorsToggled; this._options.AutoCompleteToggled += this.HandleAutoCompleteToggled; this._options.SymbolSelectorChanged += this.HandleSymbolSelectorChanged; if (this._visualOptions != null) { this._visualOptions.Changed += this.HandleVisualOptionsChanged; } }
public abstract void Apply <TFont, TColor>(VisualOptions <TFont, TColor> options) where TFont : class where TColor : struct;