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
- TextOptionsInternal.cs
- coordinatorfactory.cs
- CheckableControlBaseAdapter.cs
- AspNetSynchronizationContext.cs
- TransformerTypeCollection.cs
- StreamReader.cs
- FormsIdentity.cs
- HostingPreferredMapPath.cs
- ServiceCredentialsSecurityTokenManager.cs
- XmlBufferReader.cs
- ManagementDateTime.cs
- LayoutUtils.cs
- XmlArrayItemAttribute.cs
- AvTraceDetails.cs
- Graphics.cs
- MaxValueConverter.cs
- CipherData.cs
- Exceptions.cs
- DataViewSetting.cs
- RouteParameter.cs
- And.cs
- UntrustedRecipientException.cs
- SettingsBindableAttribute.cs
- DbConnectionInternal.cs
- NestPullup.cs
- CodeExpressionCollection.cs
- NullToBooleanConverter.cs
- ScrollableControlDesigner.cs
- QueryResults.cs
- SelectionHighlightInfo.cs
- SelectionChangedEventArgs.cs
- MailSettingsSection.cs
- GuidConverter.cs
- TextCollapsingProperties.cs
- TypeKeyValue.cs
- StyleSheetDesigner.cs
- TypeSystemProvider.cs
- GridViewRowEventArgs.cs
- GetPageNumberCompletedEventArgs.cs
- HttpsTransportElement.cs
- XmlLinkedNode.cs
- DataGridViewTextBoxColumn.cs
- RequiredArgumentAttribute.cs
- Message.cs
- InvalidAsynchronousStateException.cs
- SafeNativeMethodsCLR.cs
- RuntimeConfig.cs
- PersonalizablePropertyEntry.cs
- unsafenativemethodstextservices.cs
- BulletDecorator.cs
- BuildManager.cs
- HMACSHA1.cs
- MetadataArtifactLoaderCompositeResource.cs
- RelOps.cs
- ArithmeticException.cs
- TypedReference.cs
- EFAssociationProvider.cs
- ElementHost.cs
- NamedPipeAppDomainProtocolHandler.cs
- WmfPlaceableFileHeader.cs
- XmlSerializerVersionAttribute.cs
- Light.cs
- JournalNavigationScope.cs
- SqlGatherProducedAliases.cs
- Page.cs
- UnsafePeerToPeerMethods.cs
- StringArrayConverter.cs
- ColorKeyFrameCollection.cs
- SharedStatics.cs
- UnsafeNetInfoNativeMethods.cs
- MembershipSection.cs
- ScriptManagerProxy.cs
- SerializableReadOnlyDictionary.cs
- UmAlQuraCalendar.cs
- SinglePhaseEnlistment.cs
- DefaultBinder.cs
- SharedHttpsTransportManager.cs
- WsdlInspector.cs
- DisplayClaim.cs
- arabicshape.cs
- cookiecontainer.cs
- SqlDeflator.cs
- BufferBuilder.cs
- SchemaMapping.cs
- ImageListStreamer.cs
- PersonalizationProvider.cs
- FlowPanelDesigner.cs
- PageAsyncTask.cs
- EmptyEnumerator.cs
- QualifiedCellIdBoolean.cs
- DataGrid.cs
- ProtocolsSection.cs
- CodeValidator.cs
- HealthMonitoringSectionHelper.cs
- ActivityScheduledQuery.cs
- BrowserInteropHelper.cs
- StaticDataManager.cs
- EntityDataSource.cs
- TargetParameterCountException.cs
- EntityDataSourceWrapper.cs