# C1.Win.TouchToolKit.C1ZoomPanel.InnerPanelLayoutMode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_C1ZoomPanel_InnerPanelLayoutMode_" data-uid="C1.Win.TouchToolKit.C1ZoomPanel.InnerPanelLayoutMode*">InnerPanelLayoutMode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_C1ZoomPanel_InnerPanelLayoutMode_" data-uid="C1.Win.TouchToolKit.C1ZoomPanel.InnerPanelLayoutMode*"></a>
<h4 id="C1_Win_TouchToolKit_C1ZoomPanel_InnerPanelLayoutMode" data-uid="C1.Win.TouchToolKit.C1ZoomPanel.InnerPanelLayoutMode">InnerPanelLayoutMode</h4>
<div class="markdown level1 summary"><p>Gets or sets the layout mode of InnerPanel.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public InnerPanelLayoutMode InnerPanelLayoutMode { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property InnerPanelLayoutMode As InnerPanelLayoutMode</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="C1.Win.TouchToolKit.InnerPanelLayoutMode.html">InnerPanelLayoutMode</a></td>
      <td><p>One of <a class="xref" href="C1.Win.TouchToolKit.C1ZoomPanel.InnerPanelLayoutMode.html#C1_Win_TouchToolKit_C1ZoomPanel_InnerPanelLayoutMode">InnerPanelLayoutMode</a> values. The default is <a class="xref" href="C1.Win.TouchToolKit.InnerPanelLayoutMode.html#C1_Win_TouchToolKit_InnerPanelLayoutMode_None">None</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1ZoomPanel_InnerPanelLayoutMode_examples">Examples</h5>
<p>
  The following code example shows how to 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 ComboBox _innerPanelLayoutModeComboBox;

	public GcZoomControlsDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_innerPanelLayoutModeComboBox.TextChanged += _innerPanelLayoutModeComboBox_TextChanged;
	}

	void _innerPanelLayoutModeComboBox_TextChanged(object sender, EventArgs e)
	{
		if (_innerPanelLayoutModeComboBox.Text == "None")
		{
			_gcZoom1.InnerPanelLayoutMode = InnerPanelLayoutMode.None;
		}
		else if (_innerPanelLayoutModeComboBox.Text == "MiddleCenter")
		{
			_gcZoom1.InnerPanelLayoutMode = InnerPanelLayoutMode.MiddleCenter;
		}
	}

	private void InitializeComponent()
	{
		_innerPanelLayoutModeComboBox = new System.Windows.Forms.ComboBox();
		_innerPanelLayoutModeComboBox.Items.AddRange(new object[] { "None", "MiddleCenter" });
		_innerPanelLayoutModeComboBox.Location = new Point(120, 20);
		this.Controls.Add(_innerPanelLayoutModeComboBox);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class GcZoomControlsDemo
	Inherits Form
	Private _gcZoom1 As New GcZoom()
	Private _innerPanelLayoutModeComboBox As ComboBox

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _innerPanelLayoutModeComboBox.TextChanged, AddressOf _innerPanelLayoutModeComboBox_TextChanged
	End Sub

	Private Sub _innerPanelLayoutModeComboBox_TextChanged(sender As Object, e As EventArgs)
		If _innerPanelLayoutModeComboBox.Text = "None" Then
			_gcZoom1.InnerPanelLayoutMode = InnerPanelLayoutMode.None
		ElseIf _innerPanelLayoutModeComboBox.Text = "MiddleCenter" Then
			_gcZoom1.InnerPanelLayoutMode = InnerPanelLayoutMode.MiddleCenter
		End If
	End Sub

	Private Sub InitializeComponent()
		_innerPanelLayoutModeComboBox = New System.Windows.Forms.ComboBox()
		_innerPanelLayoutModeComboBox.Items.AddRange(New Object() {"None", "MiddleCenter"})
		_innerPanelLayoutModeComboBox.Location = New Point(120, 20)
		Me.Controls.Add(_innerPanelLayoutModeComboBox)
	End Sub
End Class</code></pre>

</div>
