Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / Ink / ElementsClipboardData.cs / 1305600 / 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
- EntityDataSourceWrapperPropertyDescriptor.cs
- AutoResetEvent.cs
- BidOverLoads.cs
- AbstractExpressions.cs
- StylusCaptureWithinProperty.cs
- EntityClientCacheKey.cs
- X509ChainPolicy.cs
- CurrentChangingEventManager.cs
- FixedSOMPageConstructor.cs
- TextRangeEdit.cs
- ByValueEqualityComparer.cs
- DataGridBoolColumn.cs
- QueryAccessibilityHelpEvent.cs
- WebPartMinimizeVerb.cs
- AssertFilter.cs
- XmlNodeChangedEventArgs.cs
- WebBaseEventKeyComparer.cs
- ResXResourceWriter.cs
- Button.cs
- PropertyChangedEventArgs.cs
- SignalGate.cs
- MarshalDirectiveException.cs
- Clipboard.cs
- StringToken.cs
- HtmlTable.cs
- DocumentViewer.cs
- SystemGatewayIPAddressInformation.cs
- ClientApiGenerator.cs
- SystemWebCachingSectionGroup.cs
- MetadataArtifactLoaderResource.cs
- printdlgexmarshaler.cs
- JavaScriptObjectDeserializer.cs
- Match.cs
- ExpandoClass.cs
- MetadataItemCollectionFactory.cs
- WCFBuildProvider.cs
- WindowInteropHelper.cs
- HostedImpersonationContext.cs
- PersonalizationProvider.cs
- SmtpMail.cs
- AssemblyCache.cs
- TemplateBaseAction.cs
- DataGridBoundColumn.cs
- MessageDecoder.cs
- InsufficientExecutionStackException.cs
- ElementUtil.cs
- XDeferredAxisSource.cs
- TrackingParameters.cs
- VisualTreeUtils.cs
- InertiaRotationBehavior.cs
- CustomAttributeFormatException.cs
- TemplateControlCodeDomTreeGenerator.cs
- SizeFConverter.cs
- ToolBar.cs
- ResourcesGenerator.cs
- TraceHandlerErrorFormatter.cs
- IndicShape.cs
- HtmlGenericControl.cs
- TextShapeableCharacters.cs
- RawStylusSystemGestureInputReport.cs
- DataRecordInternal.cs
- AdRotator.cs
- DrawingBrush.cs
- ElementNotAvailableException.cs
- Utils.cs
- SrgsSubset.cs
- DependencyPropertyConverter.cs
- ActivityBindForm.cs
- Stopwatch.cs
- StatusCommandUI.cs
- LogicalTreeHelper.cs
- EntityDataSourceChangedEventArgs.cs
- FileFormatException.cs
- ExecutionContext.cs
- OneWayElement.cs
- AssertFilter.cs
- VerticalAlignConverter.cs
- ComponentConverter.cs
- PresentationTraceSources.cs
- CheckedListBox.cs
- WebPartConnectionsCloseVerb.cs
- SafeProcessHandle.cs
- JpegBitmapDecoder.cs
- TypeReference.cs
- LicenseManager.cs
- WebPartConnectionsCancelVerb.cs
- CalendarDay.cs
- GraphicsState.cs
- SelectionProcessor.cs
- CatalogZoneAutoFormat.cs
- TrackingServices.cs
- FormatException.cs
- SafePointer.cs
- EntityKey.cs
- RangeContentEnumerator.cs
- FrameworkRichTextComposition.cs
- QueryableDataSourceEditData.cs
- SourceFileBuildProvider.cs
- WeakRefEnumerator.cs
- TextParagraphView.cs