Archive Browser
Download Cyotek.Windows.Forms.ImageBox.zip version 1.1.4.2, last updated 13/02/2014 (1.62 MB)
Download- md5: eafe88cd279eec36bc79f6409f0fc49d
using System;
namespace Cyotek.Windows.Forms
{
// Cyotek ImageBox
// Copyright (c) 2010-2014 Cyotek.
// http://cyotek.com
// http://cyotek.com/blog/tag/imagebox
// Licensed under the MIT License. See imagebox-license.txt for the full text.
// If you use this control in your applications, attribution, donations or contributions are welcome.
/// <summary>
/// Contains event data for the <see cref="ImageBox.ZoomChanged"/> event.
/// </summary>
public class ImageBoxZoomEventArgs : EventArgs
{
#region Public Constructors
/// <summary>
/// Initializes a new instance of the <see cref="ImageBoxZoomEventArgs"/> class.
/// </summary>
/// <param name="actions">The zoom operation being performed.</param>
/// <param name="source">The source of the operation.</param>
/// <param name="oldZoom">The old zoom level.</param>
/// <param name="newZoom">The new zoom level.</param>
public ImageBoxZoomEventArgs(ImageBoxZoomActions actions, ImageBoxActionSources source, int oldZoom, int newZoom)
: this()
{
this.Actions = actions;
this.Source = source;
this.OldZoom = oldZoom;
this.NewZoom = newZoom;
}
#endregion
#region Protected Constructors
/// <summary>
/// Initializes a new instance of the <see cref="ImageBoxZoomEventArgs"/> class.
/// </summary>
protected ImageBoxZoomEventArgs()
{ }
#endregion
#region Public Properties
/// <summary>
/// Gets or sets the actions that occured.
/// </summary>
/// <value>The zoom operation.</value>
public ImageBoxZoomActions Actions { get; protected set; }
/// <summary>
/// Gets or sets the new zoom level.
/// </summary>
/// <value>The new zoom level.</value>
public int NewZoom { get; protected set; }
/// <summary>
/// Gets or sets the old zoom level.
/// </summary>
/// <value>The old zoom level.</value>
public int OldZoom { get; protected set; }
/// <summary>
/// Gets or sets the source of the operation..
/// </summary>
/// <value>The source.</value>
public ImageBoxActionSources Source { get; protected set; }
#endregion
}
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate