# C1.Win.Accessibility.Items.UiaProgressBar.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Accessibility_Items_UiaProgressBar__ctor_" data-uid="C1.Win.Accessibility.Items.UiaProgressBar.#ctor*">UiaProgressBar Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Accessibility_Items_UiaProgressBar__ctor_" data-uid="C1.Win.Accessibility.Items.UiaProgressBar.#ctor*"></a>
<h4 id="C1_Win_Accessibility_Items_UiaProgressBar__ctor_C1_Win_Accessibility_ISupportUia_C1_Win_Accessibility_Items_BaseInterfaces_IUiaRangeValueProvider_C1_Win_Accessibility_Items_BaseInterfaces_IUiaValueProvider_C1_Win_Accessibility_UiaItem_System_Windows_Forms_Control_System_String_System_Windows_Forms_Control_System_Object_C1_Win_Accessibility_ISupportUiaContainer_" data-uid="C1.Win.Accessibility.Items.UiaProgressBar.#ctor(C1.Win.Accessibility.ISupportUia,C1.Win.Accessibility.Items.BaseInterfaces.IUiaRangeValueProvider,C1.Win.Accessibility.Items.BaseInterfaces.IUiaValueProvider,C1.Win.Accessibility.UiaItem,System.Windows.Forms.Control,System.String,System.Windows.Forms.Control,System.Object,C1.Win.Accessibility.ISupportUiaContainer)">UiaProgressBar(ISupportUia, IUiaRangeValueProvider, IUiaValueProvider, UiaItem, Control, string, Control, object, ISupportUiaContainer)</h4>
<div class="markdown level1 summary"><p>Constructor.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public UiaProgressBar(ISupportUia sourceItem, IUiaRangeValueProvider uiaRangeValue = null, IUiaValueProvider uiaValue = null, UiaItem uiaParent = null, Control rootControl = null, string uiaName = null, Control itemControl = null, object objectToCache = null, ISupportUiaContainer sourceContainer = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sourceItem As ISupportUia, Optional uiaRangeValue As IUiaRangeValueProvider = Nothing, Optional uiaValue As IUiaValueProvider = Nothing, Optional uiaParent As UiaItem = Nothing, Optional rootControl As Control = Nothing, Optional uiaName As String = Nothing, Optional itemControl As Control = Nothing, Optional objectToCache As Object = Nothing, Optional sourceContainer As ISupportUiaContainer = Nothing)</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="C1.Win.Accessibility.ISupportUia.html">ISupportUia</a></td>
      <td><span class="parametername">sourceItem</span></td>
      <td><p>Item with ISupportUia.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.IUiaRangeValueProvider.html">IUiaRangeValueProvider</a></td>
      <td><span class="parametername">uiaRangeValue</span></td>
      <td><p>Item with IUiaRangeValueProvider.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.IUiaValueProvider.html">IUiaValueProvider</a></td>
      <td><span class="parametername">uiaValue</span></td>
      <td><p>Item with IUiaValueProvider.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Accessibility.UiaItem.html">UiaItem</a></td>
      <td><span class="parametername">uiaParent</span></td>
      <td><p>UIA parent of this item.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></td>
      <td><span class="parametername">rootControl</span></td>
      <td><p>Root control for all items.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">uiaName</span></td>
      <td><p>Custom name for this item.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></td>
      <td><span class="parametername">itemControl</span></td>
      <td><p>Original control of this item.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">objectToCache</span></td>
      <td><p>Object for caching.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Accessibility.ISupportUiaContainer.html">ISupportUiaContainer</a></td>
      <td><span class="parametername">sourceContainer</span></td>
      <td><p>Container with inner items.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
