示例#1
0
 public TextViewClassificationFormatMap(ClassificationFormatMapService classificationFormatMapService, ITextView textView)
     : base(classificationFormatMapService, DefaultWpfViewOptions.AppearanceCategoryName)
 {
     this.textView = textView ?? throw new ArgumentNullException(nameof(textView));
     textView.Options.OptionChanged += Options_OptionChanged;
     Initialize();
 }
示例#2
0
 public HexViewClassificationFormatMap(TC.ClassificationFormatMapService classificationFormatMapService, HexView hexView)
     : base(classificationFormatMapService, DefaultWpfHexViewOptions.AppearanceCategoryName)
 {
     this.hexView = hexView ?? throw new ArgumentNullException(nameof(hexView));
     hexView.Options.OptionChanged += Options_OptionChanged;
     Initialize();
 }
 protected ViewClassificationFormatMap(ClassificationFormatMapService classificationFormatMapService, string appearanceCategoryName)
 {
     if (classificationFormatMapService == null)
     {
         throw new ArgumentNullException(nameof(classificationFormatMapService));
     }
     if (appearanceCategoryName == null)
     {
         throw new ArgumentNullException(nameof(appearanceCategoryName));
     }
     this.classificationFormatMapService = classificationFormatMapService;
     this.appearanceCategoryName         = appearanceCategoryName;
 }