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
- Tile.cs
- DrawingBrush.cs
- StringSorter.cs
- ParenExpr.cs
- WebScriptMetadataInstanceContextProvider.cs
- DataGridViewCell.cs
- DragCompletedEventArgs.cs
- PartialTrustValidationBehavior.cs
- RawAppCommandInputReport.cs
- SR.cs
- ImageMap.cs
- TaskExtensions.cs
- ProcessActivityTreeOptions.cs
- DocComment.cs
- CatalogPart.cs
- OutgoingWebResponseContext.cs
- XmlDictionaryReaderQuotas.cs
- GroupQuery.cs
- TakeQueryOptionExpression.cs
- TypeUsageBuilder.cs
- Rect.cs
- FixedSOMFixedBlock.cs
- MonthCalendar.cs
- LocalValueEnumerator.cs
- ActivityMetadata.cs
- MissingMemberException.cs
- RealizationContext.cs
- DistinctQueryOperator.cs
- BitmapEffectDrawingContent.cs
- ScrollBar.cs
- DataSourceProvider.cs
- PropertyValueUIItem.cs
- PageSettings.cs
- RestHandlerFactory.cs
- X509ScopedServiceCertificateElementCollection.cs
- DataTable.cs
- SSmlParser.cs
- MetadataCache.cs
- CssTextWriter.cs
- DispatcherHooks.cs
- SoapTypeAttribute.cs
- SourceLineInfo.cs
- DateTime.cs
- PenLineJoinValidation.cs
- EventOpcode.cs
- DataGridDetailsPresenterAutomationPeer.cs
- tooltip.cs
- XmlReader.cs
- CodeNamespaceImportCollection.cs
- input.cs
- InkCanvasFeedbackAdorner.cs
- XmlLoader.cs
- AsyncInvokeOperation.cs
- DataBindingExpressionBuilder.cs
- StrokeCollectionDefaultValueFactory.cs
- TraceHelpers.cs
- ParallelTimeline.cs
- PerspectiveCamera.cs
- TimeoutException.cs
- ObjectDataSource.cs
- ProxyHelper.cs
- FontDriver.cs
- UserThread.cs
- PeerNameRegistration.cs
- WorkflowNamespace.cs
- XamlTreeBuilderBamlRecordWriter.cs
- XmlIncludeAttribute.cs
- UnmanagedMarshal.cs
- ConfigurationElementCollection.cs
- ExtendedProtectionPolicyTypeConverter.cs
- DesignOnlyAttribute.cs
- CancelEventArgs.cs
- WrappedReader.cs
- DrawingServices.cs
- PasswordRecoveryDesigner.cs
- SqlMethods.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- DayRenderEvent.cs
- ReferencedType.cs
- SelectedDatesCollection.cs
- Underline.cs
- KeyPressEvent.cs
- ExceptionHelpers.cs
- ServiceNotStartedException.cs
- BitArray.cs
- PaintEvent.cs
- HttpModuleCollection.cs
- SHA384.cs
- SimpleWebHandlerParser.cs
- DispatchChannelSink.cs
- CachedBitmap.cs
- FormViewCommandEventArgs.cs
- DurableInstancingOptions.cs
- ImageSourceValueSerializer.cs
- ViewGenResults.cs
- MdImport.cs
- FrameworkRichTextComposition.cs
- BoolExpressionVisitors.cs
- Debug.cs
- AssociatedControlConverter.cs