DataGridCellClipboardEventArgs.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / DataGridCellClipboardEventArgs.cs / 1305600 / DataGridCellClipboardEventArgs.cs

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

using System; 
using System.Collections.Generic; 
using System.Text;
 
namespace System.Windows.Controls
{
    /// 
    /// This class encapsulates a cell information necessary for CopyingCellClipboardContent and PastingCellClipboardContent events 
    /// 
    public class DataGridCellClipboardEventArgs : EventArgs 
    { 
        /// 
        /// Construct DataGridCellClipboardEventArgs object 
        /// 
        /// 
        /// 
        ///  
        public DataGridCellClipboardEventArgs(object item, DataGridColumn column, object content)
        { 
            _item = item; 
            _column = column;
            _content = content; 
        }

        /// 
        /// Content of the cell to be set or get from clipboard 
        /// 
        public object Content 
        { 
            get { return _content; }
            set { _content = value; } 
        }

        /// 
        /// DataGrid row item containing the cell 
        /// 
        public object Item 
        { 
            get { return _item; }
        } 

        /// 
        /// DataGridColumn containing the cell
        ///  
        public DataGridColumn Column
        { 
            get { return _column; } 
        }
 
        private object _content;
        private object _item;
        private DataGridColumn _column;
    } 
}

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