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
- FillErrorEventArgs.cs
- KeySpline.cs
- MediaContextNotificationWindow.cs
- WindowsPrincipal.cs
- DataColumn.cs
- KeyedQueue.cs
- TypedReference.cs
- SqlFactory.cs
- ExternalException.cs
- DSACryptoServiceProvider.cs
- InlineCollection.cs
- StringHelper.cs
- NavigationPropertyEmitter.cs
- DataGridState.cs
- ProfileSettings.cs
- DataIdProcessor.cs
- WindowsFormsLinkLabel.cs
- UIElementPropertyUndoUnit.cs
- HttpBrowserCapabilitiesBase.cs
- RbTree.cs
- XmlNotation.cs
- _AutoWebProxyScriptEngine.cs
- BitmapSource.cs
- SafeRightsManagementQueryHandle.cs
- FixUp.cs
- TextAction.cs
- RawStylusInputCustomData.cs
- SqlGenericUtil.cs
- EntityKey.cs
- MessageEncodingBindingElementImporter.cs
- DataRecordInternal.cs
- AttachInfo.cs
- AxisAngleRotation3D.cs
- RectAnimationBase.cs
- Pen.cs
- PageContentCollection.cs
- mda.cs
- ZipIOExtraFieldPaddingElement.cs
- ChangesetResponse.cs
- SqlCommandSet.cs
- InfocardClientCredentials.cs
- Viewport2DVisual3D.cs
- Reference.cs
- CompilerWrapper.cs
- ColorConvertedBitmapExtension.cs
- CallbackValidatorAttribute.cs
- IgnoreFileBuildProvider.cs
- XmlSchemaAppInfo.cs
- LongValidator.cs
- basecomparevalidator.cs
- EmbeddedMailObjectsCollection.cs
- BaseServiceProvider.cs
- DbDeleteCommandTree.cs
- XmlNotation.cs
- ConfigXmlElement.cs
- EditorPartCollection.cs
- RoleGroup.cs
- ClientRolePrincipal.cs
- StorageComplexPropertyMapping.cs
- EventPropertyMap.cs
- MeasurementDCInfo.cs
- mediaeventargs.cs
- LayeredChannelFactory.cs
- Walker.cs
- ManagedIStream.cs
- BamlStream.cs
- HotSpotCollection.cs
- ReadWriteSpinLock.cs
- PeerName.cs
- WebServiceEnumData.cs
- HandlerBase.cs
- ObjectCacheSettings.cs
- StoragePropertyMapping.cs
- InsufficientMemoryException.cs
- ConfigurationConverterBase.cs
- XamlToRtfParser.cs
- TrustManagerMoreInformation.cs
- DecoderReplacementFallback.cs
- StringValidator.cs
- HelpInfo.cs
- DataGridViewColumnHeaderCell.cs
- TextSchema.cs
- CreateCardRequest.cs
- ConcurrentBag.cs
- CmsInterop.cs
- StaticResourceExtension.cs
- StateWorkerRequest.cs
- InputLanguage.cs
- DiscardableAttribute.cs
- XmlIlTypeHelper.cs
- JournalEntry.cs
- DataGridTable.cs
- ImageConverter.cs
- FileNotFoundException.cs
- MonitoringDescriptionAttribute.cs
- SortDescription.cs
- GetPageNumberCompletedEventArgs.cs
- MouseDevice.cs
- DataSourceXmlElementAttribute.cs
- FragmentQueryProcessor.cs