RichTextKit v0.4

TextRange.Union Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit
Declaring Type: TextRange

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);

Remarks

The returned range is configured such that the 'b' range is used for the end position (ie: the caret)

Parameters

TextRange a

The first text range

TextRange b

The second text range

Returns

TextRange

A range that encompasses both ranges