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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_RangeFromPoint_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.RangeFromPoint*">RangeFromPoint Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_RangeFromPoint_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.RangeFromPoint*"></a>
<h4 id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_RangeFromPoint_System_Windows_Point_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.RangeFromPoint(System.Windows.Point)">RangeFromPoint(Point)</h4>
<div class="markdown level1 summary"><p>Finds the degenerate range nearest to a screen coordinate.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ITextRangeProvider RangeFromPoint(Point screenLocation)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function RangeFromPoint(screenLocation As Point) As ITextRangeProvider</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">Point</span></td>
      <td><span class="parametername">screenLocation</span></td>
      <td><p>The location in screen coordinates.
The provider should check that the coordinates are within the client
area of the provider, and should throw an InvalidOperation exception
if they are not.</p>
</td>
    </tr>
  </tbody>
</table>
<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>A degenerate range nearest the specified location.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
