[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1Magnify.Closed

Closed Event

Occurs when the magnifier is closed.

Namespace: C1.Win.TouchToolKit
Assembly: C1.Win.TouchToolKit.8.dll
Syntax
public event EventHandler<MagnifierEventArgs> Closed
Returns
Type Description
EventHandler<MagnifierEventArgs> Occurs when the magnifier is closed.
Examples

The following code example shows how to use this event.

This code example is part of a larger example provided for the Move event.

public class GcMagnifierEventDemo : Form
{
	private TextBox _magnifierTextBox;
	private GcMagnifier _gcMagnifierObj = new GcMagnifier();

	public GcMagnifierEventDemo()
	{
		InitializeComponent();

		_gcMagnifierObj.SetEnableMagnifier(_magnifierTextBox, true);
		_gcMagnifierObj.Closed += _gcMagnifierObj_Closed;
	}

	void _gcMagnifierObj_Closed(object sender, MagnifierEventArgs e)
	{
		Console.WriteLine(e.TargetControl.ToString());
		Console.WriteLine(e.Position.ToString());
	}

	private void InitializeComponent()
	{
		_magnifierTextBox = new TextBox();
		_magnifierTextBox.Text = "This is a TextBox";
		_magnifierTextBox.Location = new Point(20, 20);
		_magnifierTextBox.Size = new Size(160, 20);
		this.Controls.Add(_magnifierTextBox);
	}
}
Public Class GcMagnifierEventDemo
	Inherits Form
	Private _magnifierTextBox As TextBox
	Private _gcMagnifierObj As New GcMagnifier()

	Public Sub New()
		InitializeComponent()

		_gcMagnifierObj.SetEnableMagnifier(_magnifierTextBox, True)
		AddHandler _gcMagnifierObj.Closed, AddressOf _gcMagnifierObj_Closed
	End Sub

	Private Sub _gcMagnifierObj_Closed(sender As Object, e As MagnifierEventArgs)
		Console.WriteLine(e.TargetControl.ToString())
		Console.WriteLine(e.Position.ToString())
	End Sub

	Private Sub InitializeComponent()
		_magnifierTextBox = New TextBox()
		_magnifierTextBox.Text = "This is a TextBox"
		_magnifierTextBox.Location = New Point(20, 20)
		_magnifierTextBox.Size = New Size(160, 20)
		Me.Controls.Add(_magnifierTextBox)
	End Sub
End Class