[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1Zoom.ShowPanWindow

ShowPanWindow Method

ShowPanWindow()

Shows the pan window.

Declaration
public Form ShowPanWindow()
Returns
Type Description
Form

A Form value that represents the pan window.

Remarks

Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.

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

Pan window will move as the owner form move if it is showed by this method.

Pan window's StartPosition is Manual, and its Size and Location depends on owner form if the pan window is showed by this method.

Examples

The following code example shows how to use this method.

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

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

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

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}
Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

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

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

ShowPanWindow(FormStartPosition)

Shows the pan window with the specified start position.

Declaration
public Form ShowPanWindow(FormStartPosition startPosition)
Parameters
Type Name Description
FormStartPosition startPosition

The start position of pan window.

Returns
Type Description
Form

A Form value that represents the pan window.

Remarks

Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.

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

Pan window will not move as the owner form move if it is showed by this method.

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 GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

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

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}
Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

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

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

ShowPanWindow(FormStartPosition, Size)

Shows the pan window with the specified start position and size.

Declaration
public Form ShowPanWindow(FormStartPosition startPosition, Size size)
Parameters
Type Name Description
FormStartPosition startPosition

The start position of pan window.

Size size

The size of pan window.

Returns
Type Description
Form

A Form value that represents the pan window.

Remarks

Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.

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

Pan window will not move as the owner form move if it is showed by this method.

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 GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

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

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}
Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

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

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

ShowPanWindow(Point)

Shows the pan window with the specified location.

Declaration
public Form ShowPanWindow(Point location)
Parameters
Type Name Description
Point location

The location of pan window.

Returns
Type Description
Form

A Form value that represents the pan window.

Remarks

Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.

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

Pan window will not move as the owner form move if it is showed by this method.

Pan window's StartPosition is Manual if it is showed by this method.

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 GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

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

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}
Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

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

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

ShowPanWindow(Point, Size)

Shows the pan window with the specified location and size.

Declaration
public Form ShowPanWindow(Point location, Size size)
Parameters
Type Name Description
Point location

The location of pan window.

Size size

The size of pan window.

Returns
Type Description
Form

A Form value that represents the pan window.

Remarks

Pan window will show only when the owner form is loaded, and when the owner form is closed, pan window will be closed too.

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

Pan window will not move as the owner form move if it is showed by this method.

Pan window's StartPosition is Manual if it is showed by this method.

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 GcZoom _gcZoom1 = new GcZoom();

	public PanWindowDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_showPanWindowButton.Click += _showPanWindowButton_Click;
	}

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

	private void InitializeComponent()
	{
		_showPanWindowButton = new Button();
		_showPanWindowButton.Text = "ShowPanWindow";
		_showPanWindowButton.Location = new Point(20, 20);
		_showPanWindowButton.Size = new Size(120, 25);
		this.Controls.Add(_showPanWindowButton);
	}
}
Public Class PanWindowDemo
	Inherits Form
	Private _showPanWindowButton As Button
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _showPanWindowButton.Click, AddressOf _showPanWindowButton_Click
	End Sub

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

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