ToolStripItemDataObject.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / ToolStripItemDataObject.cs / 1 / ToolStripItemDataObject.cs

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

/* 
*/ 
namespace System.Windows.Forms.Design
{ 
    using System.Diagnostics;
    using System;
    using System.Windows.Forms;
    using System.Collections; 

    ///  
    ///  Wrapper class for DataObject. This wrapped object is passed when a ToolStripItem is Drag-Dropped during DesignTime. 
    /// 
    internal class ToolStripItemDataObject : DataObject 
    {
            private ArrayList dragComponents;
            private ToolStrip owner;
            private ToolStripItem primarySelection; 

            internal ToolStripItemDataObject(ArrayList dragComponents, ToolStripItem primarySelection, ToolStrip owner) : base(){ 
                this.dragComponents = dragComponents; 
                this.owner = owner;
                this.primarySelection = primarySelection; 
            }

            internal ArrayList DragComponents {
                get{ 
                    return dragComponents;
                } 
            } 

            internal ToolStrip Owner { 
                get {
                    return owner;
                }
            } 

            internal ToolStripItem PrimarySelection { 
                get { 
                    return primarySelection;
                } 
            }
    }
}
 

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