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
- ProfilePropertySettings.cs
- Stream.cs
- TreeNodeBinding.cs
- HuffmanTree.cs
- MessageHeader.cs
- DebugTraceHelper.cs
- HttpModule.cs
- SqlDataSourceWizardForm.cs
- DataServiceRequest.cs
- DirectoryObjectSecurity.cs
- TableParagraph.cs
- Win32Native.cs
- CheckBoxStandardAdapter.cs
- SpotLight.cs
- X509CertificateStore.cs
- TemplatedMailWebEventProvider.cs
- ChangeConflicts.cs
- BinaryNode.cs
- RoutedEventArgs.cs
- RowBinding.cs
- ColumnMapCopier.cs
- TextBlock.cs
- ProviderUtil.cs
- FixedSchema.cs
- CreateUserWizardStep.cs
- TemplateBuilder.cs
- ListBindingConverter.cs
- assertwrapper.cs
- OleDbPropertySetGuid.cs
- DetailsViewInsertedEventArgs.cs
- OutputCacheModule.cs
- DataGridViewColumnConverter.cs
- PassportAuthenticationEventArgs.cs
- TableCellCollection.cs
- XmlDesigner.cs
- RegexTypeEditor.cs
- PersonalizationStateQuery.cs
- WebPartsPersonalization.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TextModifier.cs
- ProfilePropertyNameValidator.cs
- DesignTimeData.cs
- SetIndexBinder.cs
- SafePointer.cs
- InvokeProviderWrapper.cs
- EllipticalNodeOperations.cs
- ImageAnimator.cs
- PkcsMisc.cs
- InputElement.cs
- PageAsyncTaskManager.cs
- VirtualDirectoryMappingCollection.cs
- ClientSettingsSection.cs
- DeclarativeCatalogPart.cs
- DataPagerField.cs
- ModelItemCollectionImpl.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ElementUtil.cs
- DesignerSerializationVisibilityAttribute.cs
- ContextDataSourceView.cs
- XamlFigureLengthSerializer.cs
- ActivityCodeDomSerializationManager.cs
- UnmanagedMemoryStreamWrapper.cs
- SimpleTypeResolver.cs
- ContextMenuAutomationPeer.cs
- DataGridViewSortCompareEventArgs.cs
- DSASignatureDeformatter.cs
- RedirectionProxy.cs
- HelpEvent.cs
- X509Certificate.cs
- NamespaceDisplay.xaml.cs
- xmlglyphRunInfo.cs
- Trustee.cs
- EditingCommands.cs
- ColorMatrix.cs
- MouseActionValueSerializer.cs
- BinHexEncoder.cs
- ServicePoint.cs
- XsdValidatingReader.cs
- MsmqEncryptionAlgorithm.cs
- ThicknessAnimation.cs
- DbProviderFactories.cs
- TypeExtensionConverter.cs
- infer.cs
- MarkupCompilePass1.cs
- DispatcherExceptionEventArgs.cs
- QuadraticBezierSegment.cs
- AnnotationComponentManager.cs
- DataGridViewSortCompareEventArgs.cs
- Authorization.cs
- ProgressPage.cs
- SqlProvider.cs
- SerializerProvider.cs
- AssemblyBuilderData.cs
- QilPatternVisitor.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SrgsText.cs
- DateTimeOffsetStorage.cs
- ListViewDataItem.cs
- LoginDesigner.cs
- RightsManagementInformation.cs