[]
Shows the pan window.
public Form ShowPanWindow()
Type | Description |
---|---|
Form | A Form value that represents the pan window. |
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.
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
Shows the pan window with the specified start position.
public Form ShowPanWindow(FormStartPosition startPosition)
Type | Name | Description |
---|---|---|
FormStartPosition | startPosition | The start position of pan window. |
Type | Description |
---|---|
Form | A Form value that represents the pan window. |
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.
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
Shows the pan window with the specified start position and size.
public Form ShowPanWindow(FormStartPosition startPosition, Size size)
Type | Name | Description |
---|---|---|
FormStartPosition | startPosition | The start position of pan window. |
Size | size | The size of pan window. |
Type | Description |
---|---|
Form | A Form value that represents the pan window. |
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.
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
Shows the pan window with the specified location.
public Form ShowPanWindow(Point location)
Type | Name | Description |
---|---|---|
Point | location | The location of pan window. |
Type | Description |
---|---|
Form | A Form value that represents the pan window. |
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.
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
Shows the pan window with the specified location and size.
public Form ShowPanWindow(Point location, Size size)
Type | Name | Description |
---|---|---|
Point | location | The location of pan window. |
Size | size | The size of pan window. |
Type | Description |
---|---|
Form | A Form value that represents the pan window. |
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.
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