Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / Ink / ElementsClipboardData.cs / 1305600 / 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
- ContentTextAutomationPeer.cs
- GeneralTransform.cs
- PlainXmlDeserializer.cs
- ConfigViewGenerator.cs
- SecureConversationSecurityTokenParameters.cs
- UpdateDelegates.Generated.cs
- MultiSelector.cs
- ComplexBindingPropertiesAttribute.cs
- Profiler.cs
- Recipient.cs
- EmptyStringExpandableObjectConverter.cs
- ReadOnlyCollectionBase.cs
- Deflater.cs
- PropertyDescriptorCollection.cs
- QueryOpeningEnumerator.cs
- RSAPKCS1SignatureFormatter.cs
- MimeAnyImporter.cs
- Monitor.cs
- GroupItem.cs
- ISFClipboardData.cs
- ToolStripDropDownClosingEventArgs.cs
- TableCellCollection.cs
- OracleSqlParser.cs
- HitTestDrawingContextWalker.cs
- CustomValidator.cs
- SiteMembershipCondition.cs
- DataBoundControlHelper.cs
- SynchronousChannel.cs
- _OverlappedAsyncResult.cs
- SHA1CryptoServiceProvider.cs
- Scalars.cs
- ControlCollection.cs
- MarginsConverter.cs
- CharKeyFrameCollection.cs
- FormParameter.cs
- LocalIdKeyIdentifierClause.cs
- CustomLineCap.cs
- GetWinFXPath.cs
- QueryComponents.cs
- Latin1Encoding.cs
- ValueSerializerAttribute.cs
- UrlPath.cs
- GeometryModel3D.cs
- DataGridCaption.cs
- BaseTemplateParser.cs
- InternalConfigEventArgs.cs
- Internal.cs
- QueryableDataSourceHelper.cs
- StringCollection.cs
- Parameter.cs
- AdapterDictionary.cs
- SystemIcmpV4Statistics.cs
- ADConnectionHelper.cs
- DecoderReplacementFallback.cs
- CheckBoxList.cs
- Sequence.cs
- PaperSource.cs
- BufferBuilder.cs
- EntityDesignPluralizationHandler.cs
- Validator.cs
- SerializationInfo.cs
- TitleStyle.cs
- SplineKeyFrames.cs
- DBNull.cs
- BooleanStorage.cs
- FrameworkName.cs
- HeaderLabel.cs
- DropAnimation.xaml.cs
- Point3DAnimationUsingKeyFrames.cs
- InfoCardArgumentException.cs
- DataGridSortCommandEventArgs.cs
- CollectionConverter.cs
- EventLogPermissionAttribute.cs
- __TransparentProxy.cs
- InputManager.cs
- SchemaElementDecl.cs
- LinqDataSourceValidationException.cs
- ByteKeyFrameCollection.cs
- HttpHandlersSection.cs
- XhtmlBasicPhoneCallAdapter.cs
- Recipient.cs
- TopClause.cs
- IImplicitResourceProvider.cs
- StorageEndPropertyMapping.cs
- CellQuery.cs
- recordstatefactory.cs
- SspiHelper.cs
- CodeNamespace.cs
- CustomValidator.cs
- PrintingPermissionAttribute.cs
- MappingException.cs
- SafeSecurityHandles.cs
- RadioButtonStandardAdapter.cs
- Point.cs
- SamlSecurityToken.cs
- WebPartAddingEventArgs.cs
- GridItem.cs
- HandledMouseEvent.cs
- DataGridViewRowsAddedEventArgs.cs
- xmlsaver.cs