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); }
public DiffSegment(string text, DiffSegmentStyle style) { Text = text; Style = style; }