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

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider" class="text-break">IUiaTextProvider Interface
</h1>
  <div class="markdown level0 summary"><p>Represents a text provider that supports the text pattern.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.html">C1.Win.Accessibility.Items.BaseInterfaces</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IUiaTextProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IUiaTextProvider</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_DocumentRange" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.DocumentRange">
          <a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.DocumentRange.html#C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_DocumentRange">DocumentRange</a>
        </td>
        <td class="markdown level1 summary"><p>A text range that encloses the main text of the document.  Some auxillary text such as
headers, footnotes, or annotations may not be included.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_SupportedTextSelection" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.SupportedTextSelection">
          <a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.SupportedTextSelection.html#C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_SupportedTextSelection">SupportedTextSelection</a>
        </td>
        <td class="markdown level1 summary"><p>True if the text container supports text selection. If the provider returns false then
it should throw InvalidOperation exceptions for ITextProvider.GetSelection and
ITextRangeProvider.Select.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_GetSelection" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.GetSelection">
          <a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.GetSelection.html#C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_GetSelection">GetSelection()</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the current selection.  For providers that have the concept of
text selection the provider should implement this method and also return
true for the SupportsTextSelection property below.  Otherwise this method
should throw an InvalidOperation exception.
For providers that support multiple disjoint selection, this should return
an array of all the currently selected ranges. Providers that don't support
multiple disjoint selection should just return an array containing a single
range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_GetVisibleRanges" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.GetVisibleRanges">
          <a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.GetVisibleRanges.html#C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_GetVisibleRanges">GetVisibleRanges()</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the visible ranges of text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_RangeFromChild_System_Windows_Automation_Provider_IRawElementProviderSimple_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.RangeFromChild(System.Windows.Automation.Provider.IRawElementProviderSimple)">
          <a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.RangeFromChild.html#C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_RangeFromChild_System_Windows_Automation_Provider_IRawElementProviderSimple_">RangeFromChild(IRawElementProviderSimple)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the range of a child object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_RangeFromPoint_System_Windows_Point_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.RangeFromPoint(System.Windows.Point)">
          <a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.IUiaTextProvider.RangeFromPoint.html#C1_Win_Accessibility_Items_BaseInterfaces_IUiaTextProvider_RangeFromPoint_System_Windows_Point_">RangeFromPoint(Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Finds the degenerate range nearest to a screen coordinate.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
