# C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.GetVisibleRanges

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_GetVisibleRanges_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.GetVisibleRanges*">GetVisibleRanges Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_GetVisibleRanges_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.GetVisibleRanges*"></a>
<h4 id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_GetVisibleRanges" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.GetVisibleRanges">GetVisibleRanges()</h4>
<div class="markdown level1 summary"><p>Retrieves the visible ranges of text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ITextRangeProvider[] GetVisibleRanges()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function GetVisibleRanges() As ITextRangeProvider()</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.automation.provider.itextrangeprovider">ITextRangeProvider</a>[]</td>
      <td><p>The ranges of text that are visible, or possibly an empty array if there is
no visible text whatsoever.  Text in the range may still 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.
Providers should ensure they return at most a range from the beginning of the first
line with portions visible through the end of the last line with portions visible.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
