Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataGridViewAdvancedBorderStyle.cs
- LicenseException.cs
- RSAPKCS1KeyExchangeFormatter.cs
- GeneralTransform3DGroup.cs
- PointCollection.cs
- Int64Converter.cs
- AttachedPropertyInfo.cs
- ISessionStateStore.cs
- ParameterToken.cs
- CharacterMetrics.cs
- EventArgs.cs
- EntitySqlQueryBuilder.cs
- Package.cs
- AbstractDataSvcMapFileLoader.cs
- NavigationCommands.cs
- EventLogLink.cs
- SqlDataSourceStatusEventArgs.cs
- MetaData.cs
- TimeBoundedCache.cs
- ResourceProviderFactory.cs
- EncoderReplacementFallback.cs
- FusionWrap.cs
- CodeTypeConstructor.cs
- FamilyCollection.cs
- _ConnectOverlappedAsyncResult.cs
- HTTPNotFoundHandler.cs
- IsolatedStorageException.cs
- VerticalAlignConverter.cs
- CacheRequest.cs
- Constant.cs
- HostingEnvironment.cs
- SafeNativeMemoryHandle.cs
- SymLanguageVendor.cs
- InputReport.cs
- Shape.cs
- RoutedUICommand.cs
- Light.cs
- MouseGestureConverter.cs
- HashMembershipCondition.cs
- GrammarBuilderPhrase.cs
- ClickablePoint.cs
- TextTreeFixupNode.cs
- FastEncoderStatics.cs
- UIElement3D.cs
- SqlErrorCollection.cs
- TogglePattern.cs
- QueryParameter.cs
- SafeMemoryMappedFileHandle.cs
- MouseGestureConverter.cs
- DependencyPropertyAttribute.cs
- PnrpPermission.cs
- Geometry3D.cs
- ChannelCredentials.cs
- TextParagraphView.cs
- IdentifierService.cs
- SortDescriptionCollection.cs
- TextTreeRootNode.cs
- MultipleViewProviderWrapper.cs
- DataSpaceManager.cs
- WFItemsToSpacerVisibility.cs
- CancelRequestedQuery.cs
- Pkcs7Signer.cs
- FusionWrap.cs
- PerformanceCounter.cs
- MsmqIntegrationSecurity.cs
- EntityTemplateUserControl.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DelayedRegex.cs
- SQLDouble.cs
- AttachedAnnotation.cs
- TypedTableGenerator.cs
- TraceHandlerErrorFormatter.cs
- InkCanvasAutomationPeer.cs
- InputManager.cs
- PageCodeDomTreeGenerator.cs
- WebScriptEnablingElement.cs
- TimeSpanMinutesConverter.cs
- HtmlObjectListAdapter.cs
- RangeValidator.cs
- WebPartHelpVerb.cs
- SoapSchemaMember.cs
- DurableEnlistmentState.cs
- HttpCookieCollection.cs
- TagMapCollection.cs
- CellTreeNodeVisitors.cs
- StrokeCollectionDefaultValueFactory.cs
- DirectoryNotFoundException.cs
- CharacterMetrics.cs
- HoistedLocals.cs
- ErrorWrapper.cs
- WebResponse.cs
- UInt64Storage.cs
- SafeBitVector32.cs
- Vector3D.cs
- LiteralTextParser.cs
- RemotingSurrogateSelector.cs
- System.Data.OracleClient_BID.cs
- Line.cs
- WsdlBuildProvider.cs
- Bitmap.cs