# C1.Win.TouchToolKit.C1Zoom.BackColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_C1Zoom_BackColor_" data-uid="C1.Win.TouchToolKit.C1Zoom.BackColor*">BackColor Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_C1Zoom_BackColor_" data-uid="C1.Win.TouchToolKit.C1Zoom.BackColor*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_BackColor" data-uid="C1.Win.TouchToolKit.C1Zoom.BackColor">BackColor</h4>
<div class="markdown level1 summary"><p>Gets or sets the background color of blank areas in Form when to zoom and scroll.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Color BackColor { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property BackColor As Color</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.drawing.color">Color</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a> value that represents the background color of blank areas in Form when to zoom and scroll.
The default is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color.empty">Color.Empty</a>, means use the BackColor of Form.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_BackColor_examples">Examples</h5>
<p>
  The following code example shows how to use this property. 
</p>
<pre><code class="lang-csharp">public class GcZoomBackColorDemo : Form
{
	private Button _backColorButton;
	private GcZoom _gcZoom1 = new GcZoom();

	public GcZoomBackColorDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_backColorButton.Click += _backColorButton_Click;
	}

	void _backColorButton_Click(object sender, EventArgs e)
	{
		this._gcZoom1.BackColor = SystemColors.ControlDarkDark;
	}

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

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _backColorButton.Click, AddressOf _backColorButton_Click
	End Sub

	Private Sub _backColorButton_Click(sender As Object, e As EventArgs)
		Me._gcZoom1.BackColor = SystemColors.ControlDarkDark
	End Sub

	Private Sub InitializeComponent()
 		_backColorButton = New Button()
		_backColorButton.Text = "BackColor"
 		_backColorButton.Location = New Point(20, 20)
 		_backColorButton.Size = New Size(120, 25)
 		Me.Controls.Add(_backColorButton)
	End Sub
End Class</code></pre>

<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>The BackColor property does not support transparent colors.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
