# C1.Win.Accessibility.Items.BaseInterfaces.IUiaScrollProvider.SetScrollPercent

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaScrollProvider_SetScrollPercent_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaScrollProvider.SetScrollPercent*">SetScrollPercent Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaScrollProvider_SetScrollPercent_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaScrollProvider.SetScrollPercent*"></a>
<h4 id="C1_Win_Accessibility_Items_BaseInterfaces_IUiaScrollProvider_SetScrollPercent_System_Double_System_Double_" data-uid="C1.Win.Accessibility.Items.BaseInterfaces.IUiaScrollProvider.SetScrollPercent(System.Double,System.Double)">SetScrollPercent(double, double)</h4>
<div class="markdown level1 summary"><p>Request to set the current horizontal and Vertical scroll position
by percent (0-100).  Passing in the value of &quot;-1&quot;, represented by the
constant &quot;NoScroll&quot;, will indicate that scrolling in that direction
should be ignored.
The ability to call this method and simultaneously scroll horizontally and
vertically provides simple panning support.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetScrollPercent(double horizontalPercent, double verticalPercent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetScrollPercent(horizontalPercent As Double, verticalPercent As Double)</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">horizontalPercent</span></td>
      <td><p>horizontal position to scroll to</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">verticalPercent</span></td>
      <td><p>vertical position to scroll to</p>
</td>
    </tr>
  </tbody>
</table>
</div>
