/// <summary>
 /// Retrieves the visible range within the container
 /// </summary>
 /// <returns>The range of text that is visible within the container.  Note that the
 /// text of the range could be obscured by an overlapping window.  Also, portions
 /// of the range at the beginning, in the middle, or at the end may not be visible
 /// because they are scrolled off to the side.</returns>
 public TextPatternRange [] GetVisibleRanges()
 {
     SafeTextRangeHandle [] hTextRanges = UiaCoreApi.TextPattern_GetVisibleRanges(_hPattern);
     return(TextPatternRange.Wrap(hTextRanges, this));
 }