/// <summary> /// Creates an object storing information about a highlighted portion of text /// </summary> /// <param name="start">The index of the first highlighted character</param> /// <param name="length">The length of the highlight</param> /// <param name="color">The color of the highlight</param> /// <param name="type">The type of the highlight</param> public RtfHighlight(int start, int length, Color color, RtfHighlightType type) { _start = start; _length = length; _color = color; _type = type; }
public void ImportDiff(IDiffObject diffElement) { if (diffElement != null) { _start = (int)diffElement.Position; _length = diffElement.Length; _color = DEFAULT_DIFF_COL; _type = RtfHighlightType.Foreground; } }