Archive Browser
Download ListBoxInsertionDragDemo.zip version 1.0.0.0, last updated 27/07/2014 (14.71 KB)
Download- md5: 39356bf60268fa530c9f0e472b474eb7
using System.ComponentModel;
// Dragging items in a ListBox control with visual insertion guides
// http://www.cyotek.com/blog/dragging-items-in-a-listbox-control-with-visual-insertion-guides
namespace ListBoxInsertionDragDemo
{
/// <summary>
/// Provides data for the <see cref="ListBox.ItemDragging"/> event of the <see cref="ListBox"/> control.
/// </summary>
internal class CancelListBoxItemDragEventArgs : CancelEventArgs
{
#region Public Constructors
/// <summary>
/// Initializes a new instance of the <see cref="CancelListBoxItemDragEventArgs"/> class.
/// </summary>
/// <param name="dragIndex">The index of the item the event data relates to.</param>
public CancelListBoxItemDragEventArgs(int dragIndex)
{
this.DragIndex = dragIndex;
}
#endregion
#region Protected Constructors
/// <summary>
/// Initializes a new instance of the <see cref="CancelListBoxItemDragEventArgs"/> class.
/// </summary>
protected CancelListBoxItemDragEventArgs()
{ }
#endregion
#region Public Properties
/// <summary>
/// Gets the index of the item that is the source of the drag operation.
/// </summary>
/// <value>The index of the item that initiated the drag operation.</value>
public int DragIndex { 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