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


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


TextRange a

The first text range

TextRange b

The second text range



A range that encompasses both ranges

Subscribe for more like this. No spam, just fun tech stuff :)

Or, find me on Twitter: @toptensoftware.