|
//------------------------------------------------------------------------------
// <copyright file="ListViewItemSelectionChangedEvent.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
/*
*/
namespace System.Windows.Forms
{
using System.ComponentModel;
/// <include file='doc\ListViewItemSelectionChangedEvent.uex' path='docs/doc[@for="ListViewItemSelectionChangedEventArgs"]/*' />
/// <devdoc>
/// The event class that is created when the selection state of a ListViewItem is changed.
/// </devdoc>
public class ListViewItemSelectionChangedEventArgs : EventArgs
{
private ListViewItem item;
private int itemIndex;
private bool isSelected;
/// <include file='doc\ListViewItemSelectionChangedEvent.uex' path='docs/doc[@for="ListViewItemSelectionChangedEventArgs.ListViewItemSelectionChangedEventArgs"]/*' />
/// <devdoc>
/// Constructs a ListViewItemSelectionChangedEventArgs object.
/// </devdoc>
public ListViewItemSelectionChangedEventArgs(ListViewItem item, int itemIndex, bool isSelected)
{
this.item = item;
this.itemIndex = itemIndex;
this.isSelected = isSelected;
}
/// <include file='doc\ListViewItemSelectionChangedEvent.uex' path='docs/doc[@for="ListViewItemSelectionChangedEventArgs.IsSelected"]/*' />
/// <devdoc>
/// Return true if the item is selected
/// </devdoc>
public bool IsSelected
{
get
{
return this.isSelected;
}
}
/// <include file='doc\ListViewItemSelectionChangedEvent.uex' path='docs/doc[@for="ListViewItemSelectionChangedEventArgs.Item"]/*' />
/// <devdoc>
/// The list view item whose selection changed
/// </devdoc>
public ListViewItem Item
{
get
{
return this.item;
}
}
/// <include file='doc\ListViewItemSelectionChangedEvent.uex' path='docs/doc[@for="ListViewItemSelectionChangedEventArgs.ItemIndex"]/*' />
/// <devdoc>
/// The list view item's index
/// </devdoc>
public int ItemIndex
{
get
{
return this.itemIndex;
}
}
}
}
|