[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1Zoom.BackColor

BackColor Property

BackColor

Gets or sets the background color of blank areas in Form when to zoom and scroll.

Declaration
public Color BackColor { get; set; }
Property Value
Type Description
Color

A Color value that represents the background color of blank areas in Form when to zoom and scroll. The default is Color.Empty, means use the BackColor of Form.

Examples

The following code example shows how to use this property.

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);
	}
}
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
Exceptions
Type Condition
ArgumentException

The BackColor property does not support transparent colors.