# C1.Win.TouchToolKit.C1Zoom.ControlBars

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_C1Zoom_ControlBars_" data-uid="C1.Win.TouchToolKit.C1Zoom.ControlBars*">ControlBars Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_C1Zoom_ControlBars_" data-uid="C1.Win.TouchToolKit.C1Zoom.ControlBars*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_ControlBars" data-uid="C1.Win.TouchToolKit.C1Zoom.ControlBars">ControlBars</h4>
<div class="markdown level1 summary"><p>Gets the collection of <a class="xref" href="C1.Win.TouchToolKit.ControlBar.html">ControlBar</a> contained within the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public List&lt;ControlBar&gt; ControlBars { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property ControlBars As List(Of ControlBar)</code></pre>
</div>
<h5 class="propertyValue">Property Value</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.collections.generic.list-1">List</a>&lt;<a class="xref" href="C1.Win.TouchToolKit.ControlBar.html">ControlBar</a>&gt;</td>
      <td><p>A <a class="xref" href="C1.Win.TouchToolKit.ControlBar.html">ControlBar</a> value list that representing the collection of <a class="xref" href="C1.Win.TouchToolKit.ControlBar.html">ControlBar</a> contained within the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ControlBars_examples">Examples</h5>
<p>
  The following code example shows how to use this property. 
</p>
<pre><code class="lang-csharp">public class ControlBarDemo : Form
{
	private MyUserControl _userControl = new MyUserControl();
	private GcZoom _gcZoom1 = new GcZoom();

	public ControlBarDemo()
	{
		_gcZoom1.Target = this;

		// Create ControlBar
		ControlBar controlBar = new ControlBar();

		// Content should is a Type of UserControl.
		controlBar.Content = _userControl.GetType();

		controlBar.PositionMode = PositionMode.Floating;

		// Only take effect when Position Mode is Dock.
		// controlBar.DockPosition = ContentAlignment.MiddleCenter;
		// controlBar.Margin = new System.Windows.Forms.Padding();

		// Only take effect when Position is Fix or Flowing.
		controlBar.Position = new Point(20, 20);

		controlBar.Opacity = 1d;
		controlBar.TransparentBackground = true;

		_gcZoom1.ControlBars.Add(controlBar);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class ControlBarDemo
	Inherits Form
	Private _userControl As New MyUserControl()
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		_gcZoom1.Target = Me

		' Create ControlBar
		Dim controlBar As New ControlBar()

 		' Content should is a Type of UserControl.
		controlBar.Content = _userControl.[GetType]()

		controlBar.PositionMode = PositionMode.Floating

		' Only take effect when Position Mode is Dock.
		' controlBar.DockPosition = ContentAlignment.MiddleCenter;
		' controlBar.Margin = new System.Windows.Forms.Padding();

		' Only take effect when Position is Fix or Flowing.
		controlBar.Position = New Point(20, 20)

		controlBar.Opacity = 1.0
		controlBar.TransparentBackground = True

		_gcZoom1.ControlBars.Add(controlBar)
	End Sub
End Class</code></pre>

</div>
