public ITextView CreateView(TextViewCreationOptions options) { var file = options.File ?? TransientTextFile(); var document = DocumentFor(file); var settings = SettingsProvider.GetSettings(Preferences); var fontManager = FontManagerProvider.GetFontManager(settings); var textView = new TextView(document, AppearanceFor(document, fontManager), Adornments, MouseCursors, MouseCursorRegions, WhiteSpace(settings), settings, fontManager); textView.Margins = options.Margins ?? DefaultMarginsFor(textView); return textView; }
public ITextView CreateView(TextViewCreationOptions options) { var file = options.File ?? TransientTextFile(); var document = DocumentFor(file); var settings = SettingsProvider.GetSettings(Preferences); var fontManager = FontManagerProvider.GetFontManager(settings); var textView = new TextView(document, AppearanceFor(document, fontManager), Adornments, MouseCursors, MouseCursorRegions, WhiteSpace(settings), settings, fontManager); textView.Margins = options.Margins ?? DefaultMarginsFor(textView); return(textView); }