예제 #1
0
 TextBlockContentInfoFactory(ITextElementFactory textElementFactory, IContentTypeRegistryService contentTypeRegistryService, ITextClassifierAggregatorService textClassifierAggregatorService)
 {
     this.textElementFactory              = textElementFactory;
     this.contentTypeRegistryService      = contentTypeRegistryService;
     this.textClassifierAggregatorService = textClassifierAggregatorService;
     toAggregator = new Dictionary <IContentType, ITextClassifierAggregator>();
 }
예제 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="textElementFactory"></param>
 /// <param name="version">Version number. It's incremented when the theme has changed to make sure the UI element is regenerated.</param>
 /// <param name="classificationFormatMap"></param>
 /// <param name="text"></param>
 /// <param name="tags"></param>
 /// <param name="textElementFlags"></param>
 /// <param name="opacity"></param>
 public TextBlockContentInfo(ITextElementFactory textElementFactory, int version, IClassificationFormatMap classificationFormatMap, string text, TextClassificationTag[] tags, TextElementFlags textElementFlags, double opacity)
 {
     TextElementFactory      = textElementFactory ?? throw new ArgumentNullException(nameof(textElementFactory));
     Version                 = version;
     ClassificationFormatMap = classificationFormatMap ?? throw new ArgumentNullException(nameof(classificationFormatMap));
     Text             = text ?? throw new ArgumentNullException(nameof(text));
     Tags             = tags ?? throw new ArgumentNullException(nameof(tags));
     TextElementFlags = textElementFlags;
     Opacity          = opacity;
 }