public TextRangePattern (Accessible accessible) { this.accessible = accessible; this.text = accessible.QueryText (); this.startOffset = 0; this.endOffset = text.CharacterCount; }