[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1Zoom.ClosePanWindow

ClosePanWindow Method

ClosePanWindow()

Closes the pan window.

Declaration
public void ClosePanWindow()
Remarks

If pan window has been closed to call this method will do nothing.

Examples

The following code example shows how to use this method.

This code example is part of a larger example provided for the ShowPanWindow() method.

public class PanWindowDemo : Form
{
	private Button _showPanWindowButton;
	private Button _closePanWindowButton;
	private GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
		_closePanWindowButton.Click += _closePanWindowButton_Click;
	}

	void _showPanWindowButton_Click(object sender, EventArgs e)
	{
		_gcZoom1.ShowPanWindow();
	}

	void _closePanWindowButton_Click(object sender, EventArgs e)
	{
		_gcZoom1.ClosePanWindow();
	}

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);

		_closePanWindowButton = new Button();
		_closePanWindowButton.Text = "ClosePanWindow";
		_closePanWindowButton.Location = new Point(20, 80);
		_closePanWindowButton.Size = new Size(120, 25);

		this.Controls.Add(_showPanWindowButton);
		this.Controls.Add(_closePanWindowButton);
	}
}
Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _closePanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
		AddHandler _closePanWindowButton.Click, AddressOf _closePanWindowButton_Click
	End Sub

	Private Sub _showPanWindowButton_Click(sender As Object, e As EventArgs)
		_gcZoom1.ShowPanWindow()
	End Sub

	Private Sub _closePanWindowButton_Click(sender As Object, e As EventArgs)
		_gcZoom1.ClosePanWindow()
	End Sub

	Private Sub InitializeComponent()
		_showPanWindowButton = New Button()
		_showPanWindowButton.Text = "ShowPanWindow"
		_showPanWindowButton.Location = New Point(20, 20)
		_showPanWindowButton.Size = New Size(120, 25)

		_closePanWindowButton = New Button()
		_closePanWindowButton.Text = "ClosePanWindow"
		_closePanWindowButton.Location = New Point(20, 80)
		_closePanWindowButton.Size = New Size(120, 25)

		Me.Controls.Add(_showPanWindowButton)
		Me.Controls.Add(_closePanWindowButton)
	End Sub
End Class