protected ViewEditorFormatMap(EditorFormatMapService editorFormatMapService, string appearanceCategoryName) { categoryMap = null !; this.editorFormatMapService = editorFormatMapService ?? throw new ArgumentNullException(nameof(editorFormatMapService)); this.appearanceCategoryName = appearanceCategoryName ?? throw new ArgumentNullException(nameof(appearanceCategoryName)); viewProps = new HashSet <string>(StringComparer.Ordinal); }
public TextViewEditorFormatMap(ITextView textView, EditorFormatMapService editorFormatMapService) : base(editorFormatMapService, DefaultWpfViewOptions.AppearanceCategoryName) { this.textView = textView ?? throw new ArgumentNullException(nameof(textView)); textView.Options.OptionChanged += Options_OptionChanged; Initialize(); }
public HexViewEditorFormatMap(HexView hexView, TC.EditorFormatMapService editorFormatMapService) : base(editorFormatMapService, DefaultWpfHexViewOptions.AppearanceCategoryName) { this.hexView = hexView ?? throw new ArgumentNullException(nameof(hexView)); hexView.Options.OptionChanged += Options_OptionChanged; Initialize(); }
protected ViewEditorFormatMap(EditorFormatMapService editorFormatMapService, string appearanceCategoryName) { if (editorFormatMapService == null) throw new ArgumentNullException(nameof(editorFormatMapService)); if (appearanceCategoryName == null) throw new ArgumentNullException(nameof(appearanceCategoryName)); this.editorFormatMapService = editorFormatMapService; this.appearanceCategoryName = appearanceCategoryName; viewProps = new HashSet<string>(StringComparer.Ordinal); }
public TextViewEditorFormatMap(ITextView textView, EditorFormatMapService editorFormatMapService) : base(editorFormatMapService, DefaultWpfViewOptions.AppearanceCategoryName) { if (textView == null) throw new ArgumentNullException(nameof(textView)); this.textView = textView; textView.Options.OptionChanged += Options_OptionChanged; Initialize(); }