Create a new range that is the union of two other ranges. The union is the smallest range that contains the other two other ranges.
public static TextRange Union(TextRange a, TextRange b);
The returned range is configured such that the 'b' range is used for the end position (ie: the caret)
The first text range
The second text range
A range that encompasses both ranges