Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / MS / Internal / Ink / ElementsClipboardData.cs / 1 / ElementsClipboardData.cs
//---------------------------------------------------------------------------- // // File: ElementsClipboardData.cs // // Description: // A base class which can convert the clipboard data from/to FrameworkElement array // // Features: // // History: // 11/17/2004 waynezen: Created // // Copyright (C) 2001 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; namespace MS.Internal.Ink { internal abstract class ElementsClipboardData : ClipboardData { //------------------------------------------------------------------------------- // // Constructors // //------------------------------------------------------------------------------- #region Constructors // The default constructor internal ElementsClipboardData() { } // The constructor which takes a FrameworkElement array. internal ElementsClipboardData(UIElement[] elements) { if ( elements != null ) { ElementList = new List(elements); } } #endregion Constructors //-------------------------------------------------------------------------------- // // Internal Properties // //------------------------------------------------------------------------------- #region Internal Properties // Gets the element array. internal List Elements { get { if ( ElementList != null ) { return _elementList; } else { return new List (); } } } #endregion Internal Properties //-------------------------------------------------------------------------------- // // Protected Properties // //-------------------------------------------------------------------------------- #region Protected Properties // Sets/Gets the internal array list protected List ElementList { get { return _elementList; } set { _elementList = value; } } #endregion Protected Properties //------------------------------------------------------------------------------- // // Private Fields // //-------------------------------------------------------------------------------- #region Private Fields private List _elementList; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // File: ElementsClipboardData.cs // // Description: // A base class which can convert the clipboard data from/to FrameworkElement array // // Features: // // History: // 11/17/2004 waynezen: Created // // Copyright (C) 2001 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; namespace MS.Internal.Ink { internal abstract class ElementsClipboardData : ClipboardData { //------------------------------------------------------------------------------- // // Constructors // //------------------------------------------------------------------------------- #region Constructors // The default constructor internal ElementsClipboardData() { } // The constructor which takes a FrameworkElement array. internal ElementsClipboardData(UIElement[] elements) { if ( elements != null ) { ElementList = new List (elements); } } #endregion Constructors //-------------------------------------------------------------------------------- // // Internal Properties // //------------------------------------------------------------------------------- #region Internal Properties // Gets the element array. internal List Elements { get { if ( ElementList != null ) { return _elementList; } else { return new List (); } } } #endregion Internal Properties //-------------------------------------------------------------------------------- // // Protected Properties // //-------------------------------------------------------------------------------- #region Protected Properties // Sets/Gets the internal array list protected List ElementList { get { return _elementList; } set { _elementList = value; } } #endregion Protected Properties //------------------------------------------------------------------------------- // // Private Fields // //-------------------------------------------------------------------------------- #region Private Fields private List _elementList; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapEffectInput.cs
- Int16Storage.cs
- StandardOleMarshalObject.cs
- FontDriver.cs
- NumberFormatInfo.cs
- MultiBinding.cs
- DataGridViewRow.cs
- Evidence.cs
- DocumentPage.cs
- TextDocumentView.cs
- XsdBuilder.cs
- QueryConverter.cs
- FrameworkReadOnlyPropertyMetadata.cs
- XmlUrlResolver.cs
- PolicyManager.cs
- _OSSOCK.cs
- ParameterCollection.cs
- ChtmlCommandAdapter.cs
- TextBounds.cs
- Win32Exception.cs
- ParameterBinding.cs
- ForceCopyBuildProvider.cs
- OledbConnectionStringbuilder.cs
- MemberJoinTreeNode.cs
- DataRow.cs
- ResourceSetExpression.cs
- ToolStripItem.cs
- CodeDomLocalizationProvider.cs
- SecurityState.cs
- DataContract.cs
- AppSettingsReader.cs
- ThumbAutomationPeer.cs
- EmptyCollection.cs
- CryptoApi.cs
- HttpModuleCollection.cs
- FormViewRow.cs
- ClientRoleProvider.cs
- SqlIdentifier.cs
- RSAPKCS1SignatureDeformatter.cs
- ServiceDocumentFormatter.cs
- WindowPattern.cs
- FontStretches.cs
- SeverityFilter.cs
- DataGridViewDataConnection.cs
- WebPartConnectionsCancelVerb.cs
- StandardOleMarshalObject.cs
- DataBinding.cs
- HtmlUtf8RawTextWriter.cs
- TrackingRecord.cs
- EntityClassGenerator.cs
- SqlClientWrapperSmiStream.cs
- M3DUtil.cs
- ECDiffieHellmanPublicKey.cs
- Attribute.cs
- PeerCollaboration.cs
- BinaryFormatter.cs
- TreeView.cs
- WebDescriptionAttribute.cs
- UIElementAutomationPeer.cs
- ProfessionalColors.cs
- PolicyLevel.cs
- TreeViewImageIndexConverter.cs
- CodeDirectionExpression.cs
- FormClosingEvent.cs
- Executor.cs
- CodeRemoveEventStatement.cs
- DataGridViewCellStyleConverter.cs
- TcpServerChannel.cs
- DetailsViewDeleteEventArgs.cs
- Int32RectConverter.cs
- ScrollBarRenderer.cs
- ExpressionBuilder.cs
- ZipIOExtraField.cs
- ColorConvertedBitmap.cs
- DrawingVisualDrawingContext.cs
- TransformationRules.cs
- ObjectDataProvider.cs
- XPathNodeList.cs
- NetworkCredential.cs
- CommandValueSerializer.cs
- FormViewDeleteEventArgs.cs
- TypographyProperties.cs
- CharacterString.cs
- SpellerError.cs
- MembershipAdapter.cs
- _DisconnectOverlappedAsyncResult.cs
- SqlFlattener.cs
- HttpServerVarsCollection.cs
- BordersPage.cs
- ReplyAdapterChannelListener.cs
- InternalPermissions.cs
- ObjectReaderCompiler.cs
- ProfileModule.cs
- LocalValueEnumerator.cs
- LayoutEngine.cs
- DataKey.cs
- Size.cs
- VarRemapper.cs
- X509CertificateInitiatorServiceCredential.cs
- CodeStatement.cs