ListViewItemSelectionChangedEvent.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / ListViewItemSelectionChangedEvent.cs / 1 / ListViewItemSelectionChangedEvent.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

/* 
 */ 
namespace System.Windows.Forms
{ 
    using System.ComponentModel;

    /// 
    ///  
    /// The event class that is created when the selection state of a ListViewItem is changed.
    ///  
    public class ListViewItemSelectionChangedEventArgs : EventArgs 
    {
        private ListViewItem item; 
        private int itemIndex;
        private bool isSelected;

        ///  
        /// 
        /// Constructs a ListViewItemSelectionChangedEventArgs object. 
        ///  
        public ListViewItemSelectionChangedEventArgs(ListViewItem item, int itemIndex, bool isSelected)
        { 
            this.item = item;
            this.itemIndex = itemIndex;
            this.isSelected = isSelected;
        } 

        ///  
        ///  
        /// Return true if the item is selected
        ///  
        public bool IsSelected
        {
            get
            { 
                return this.isSelected;
            } 
        } 

        ///  
        /// 
        /// The list view item whose selection changed
        /// 
        public ListViewItem Item 
        {
            get 
            { 
                return this.item;
            } 
        }

        /// 
        ///  
        /// The list view item's index
        ///  
        public int ItemIndex 
        {
            get 
            {
                return this.itemIndex;
            }
        } 
    }
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK