# C1.Win.TouchToolKit.C1ZoomPanel.ZoomTargets

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_C1ZoomPanel_ZoomTargets_" data-uid="C1.Win.TouchToolKit.C1ZoomPanel.ZoomTargets*">ZoomTargets Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_C1ZoomPanel_ZoomTargets_" data-uid="C1.Win.TouchToolKit.C1ZoomPanel.ZoomTargets*"></a>
<h4 id="C1_Win_TouchToolKit_C1ZoomPanel_ZoomTargets" data-uid="C1.Win.TouchToolKit.C1ZoomPanel.ZoomTargets">ZoomTargets</h4>
<div class="markdown level1 summary"><p>Gets the collection of controls that can receive the zoom gesture message.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Browsable(false)]
public List&lt;Control&gt; ZoomTargets { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Browsable(False)&gt;
Public ReadOnly Property ZoomTargets As List(Of Control)</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="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a>&gt;</td>
      <td><p>An collection of controls that can receive the zoom gesture message.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1ZoomPanel_ZoomTargets_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.html">C1Zoom</a> will do nothing while the user do zoom gesture at the controls on the collection.</p>
</div>
<h5 id="C1_Win_TouchToolKit_C1ZoomPanel_ZoomTargets_examples">Examples</h5>
<p>
  The following code example shows how use this property. 
</p>
<p>
  This code example is part of a larger example provided for the <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.Controls.html#C1_Win_TouchToolKit_C1Zoom_Controls">Controls</a> property.
</p>
<pre><code class="lang-csharp">public class GcZoomControlsDemo : Form
{
	private GcZoom _gcZoom1 = new GcZoom();
	private Button _zoomTargetsButton;

	public GcZoomControlsDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_zoomTargetsButton.Click += _zoomTargetsButton_Click;
	}

	void _zoomTargetsButton_Click(object sender, EventArgs e)
	{
		foreach (Control item in _gcZoom1.ZoomTargets)
		{
			Console.WriteLine(item.ToString());
		}
	}

	private void InitializeComponent()
	{
		_zoomTargetsButton = new Button();
		_zoomTargetsButton.Text = "ZoomTargets";
		_zoomTargetsButton.Location = new Point(20, 220);
		_zoomTargetsButton.Size = new Size(120, 25);
		this.Controls.Add(_zoomTargetsButton);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class GcZoomControlsDemo
	Inherits Form
	Private _gcZoom1 As New GcZoom()
	Private _zoomTargetsButton As Button

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _zoomTargetsButton.Click, AddressOf _zoomTargetsButton_Click
	End Sub

	Private Sub _zoomTargetsButton_Click(sender As Object, e As EventArgs)
		For Each item As Control In _gcZoom1.ZoomTargets
			Console.WriteLine(item.ToString())
		Next
	End Sub

	Private Sub InitializeComponent()
		_zoomTargetsButton = New Button()
		_zoomTargetsButton.Text = "ZoomTargets"
		_zoomTargetsButton.Location = New Point(20, 220)
		_zoomTargetsButton.Size = New Size(120, 25)
		Me.Controls.Add(_zoomTargetsButton)
	End Sub
End Class</code></pre>

</div>
