Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- StringValueSerializer.cs
- FunctionUpdateCommand.cs
- TableLayout.cs
- Html32TextWriter.cs
- XmlSchemaSequence.cs
- SelectionPattern.cs
- TypeSystemHelpers.cs
- TCPListener.cs
- HeaderUtility.cs
- ObjectPropertyMapping.cs
- DispatcherExceptionFilterEventArgs.cs
- WindowsButton.cs
- SourceElementsCollection.cs
- ScrollChrome.cs
- FormsAuthenticationModule.cs
- SqlSupersetValidator.cs
- DBNull.cs
- ImpersonateTokenRef.cs
- FormatConvertedBitmap.cs
- DeferredSelectedIndexReference.cs
- SchemaDeclBase.cs
- SQLBinaryStorage.cs
- WindowHideOrCloseTracker.cs
- Location.cs
- TextContainerHelper.cs
- TypeInfo.cs
- RtfFormatStack.cs
- SiteMapDataSourceView.cs
- EntityDataSourceView.cs
- ConstrainedDataObject.cs
- DecoderExceptionFallback.cs
- NotSupportedException.cs
- FormsAuthenticationCredentials.cs
- MetabaseServerConfig.cs
- FeatureAttribute.cs
- DoubleLink.cs
- TypeCacheManager.cs
- PagesSection.cs
- StringResourceManager.cs
- DragDrop.cs
- BlurBitmapEffect.cs
- QueueProcessor.cs
- CacheHelper.cs
- JsonFormatReaderGenerator.cs
- Rule.cs
- PersonalizationAdministration.cs
- Stack.cs
- TableRow.cs
- DelegatingMessage.cs
- XmlAttributeCollection.cs
- UIElementIsland.cs
- StorageComplexPropertyMapping.cs
- HijriCalendar.cs
- WebServiceAttribute.cs
- SqlDuplicator.cs
- XPathNode.cs
- ArrayConverter.cs
- OrderByQueryOptionExpression.cs
- ProfessionalColorTable.cs
- ContentType.cs
- XmlSchemaSimpleType.cs
- ClientOptions.cs
- OdbcHandle.cs
- WebBrowser.cs
- DataTableNameHandler.cs
- CorrelationTokenInvalidatedHandler.cs
- MailAddress.cs
- XmlStrings.cs
- XPathNodePointer.cs
- EncodingInfo.cs
- TdsParserSafeHandles.cs
- SafeEventLogWriteHandle.cs
- MergablePropertyAttribute.cs
- ExportOptions.cs
- XmlWhitespace.cs
- MetafileHeaderEmf.cs
- ObjectToken.cs
- FocusTracker.cs
- SoapObjectInfo.cs
- ManagementDateTime.cs
- AppDomainProtocolHandler.cs
- SimpleRecyclingCache.cs
- CodeDOMUtility.cs
- Attribute.cs
- CheckBox.cs
- DependencyProperty.cs
- SchemaElementLookUpTableEnumerator.cs
- QueryOutputWriterV1.cs
- PolicyManager.cs
- RootContext.cs
- SequentialActivityDesigner.cs
- LocatorPart.cs
- HostProtectionException.cs
- CodeParameterDeclarationExpression.cs
- PropertyOrder.cs
- EntityDataSourceDesignerHelper.cs
- WebEvents.cs
- SolidColorBrush.cs
- CallbackException.cs
- odbcmetadatacollectionnames.cs