SelectedGridItemChangedEvent.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 / SelectedGridItemChangedEvent.cs / 1 / SelectedGridItemChangedEvent.cs

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

/* 
 */ 
namespace System.Windows.Forms {
 
    using System.Diagnostics;
    using System;
    using System.ComponentModel;
 
    /// 
    ///  
    /// The event class that is created when the selected GridItem in the PropertyGrid is changed by the user. 
    /// 
    public class SelectedGridItemChangedEventArgs : EventArgs { 
        private GridItem oldSelection;
        private GridItem newSelection;

        ///  
        /// 
        /// Constructs a SelectedGridItemChangedEventArgs object. 
        ///  
        public SelectedGridItemChangedEventArgs(GridItem oldSel, GridItem newSel) {
            this.oldSelection = oldSel; 
            this.newSelection = newSel;
        }

 

        ///  
        ///  
        /// The newly selected GridItem object
        ///  
        public GridItem NewSelection {
            get {
                return this.newSelection;
            } 
        }
 
        ///  
        /// 
        /// The previously selected GridItem object.  This can be null. 
        /// 
        public GridItem OldSelection {
            get {
                return this.oldSelection; 
            }
        } 
 
   }
} 

// 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