Beispiel #1
0
        private Run SegmentToRun(string text, DiffSegmentStyle style)
        {
            var run = new Run(text);

            switch (style)
            {
            case DiffSegmentStyle.Insertion:
                run.Style = _InsertionStyle;
                break;

            case DiffSegmentStyle.Deletion:
                run.Style = _DeletionStyle;
                break;
            }
            return(run);
        }
Beispiel #2
0
 public DiffSegment(string text, DiffSegmentStyle style)
 {
     Text  = text;
     Style = style;
 }