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
- FloatUtil.cs
- DataGridViewTextBoxEditingControl.cs
- ContourSegment.cs
- FirstMatchCodeGroup.cs
- XPathNodeIterator.cs
- ToolStripRenderer.cs
- Point4D.cs
- TimeStampChecker.cs
- RTLAwareMessageBox.cs
- HttpApplicationFactory.cs
- CommonEndpointBehaviorElement.cs
- EntityContainerEmitter.cs
- ObjectDataSourceStatusEventArgs.cs
- DriveNotFoundException.cs
- CompoundFileIOPermission.cs
- XmlDataLoader.cs
- ReferencedCollectionType.cs
- XPathNodeInfoAtom.cs
- AsyncOperation.cs
- BinaryUtilClasses.cs
- SelectedDatesCollection.cs
- RootProfilePropertySettingsCollection.cs
- HttpCookiesSection.cs
- XPathNodeHelper.cs
- CacheSection.cs
- StatusBarDrawItemEvent.cs
- FileRecordSequenceHelper.cs
- odbcmetadatafactory.cs
- KeyTime.cs
- IsolatedStoragePermission.cs
- UpdateRecord.cs
- DataGridViewToolTip.cs
- ClientProxyGenerator.cs
- PerCallInstanceContextProvider.cs
- ConcurrentStack.cs
- DataException.cs
- GridViewSortEventArgs.cs
- TemplateBamlTreeBuilder.cs
- FormsAuthenticationTicket.cs
- List.cs
- XamlFigureLengthSerializer.cs
- WriterOutput.cs
- TargetException.cs
- TimeoutException.cs
- WhitespaceRuleLookup.cs
- SendMailErrorEventArgs.cs
- Italic.cs
- ThrowHelper.cs
- TextBoxView.cs
- SoapIncludeAttribute.cs
- SerializationStore.cs
- RuleCache.cs
- Calendar.cs
- CodeParameterDeclarationExpression.cs
- FlowchartStart.xaml.cs
- DataGridBeginningEditEventArgs.cs
- NullRuntimeConfig.cs
- DataGridColumnHeadersPresenter.cs
- HttpCacheParams.cs
- ExpressionBindingCollection.cs
- SettingsBase.cs
- Stylus.cs
- DbUpdateCommandTree.cs
- Schema.cs
- WorkflowPrinting.cs
- PrimarySelectionAdorner.cs
- TimerExtension.cs
- XhtmlConformanceSection.cs
- HighContrastHelper.cs
- Dispatcher.cs
- ControlIdConverter.cs
- StaticContext.cs
- DbProviderServices.cs
- SharedStatics.cs
- ReturnEventArgs.cs
- ISFClipboardData.cs
- DbProviderFactoriesConfigurationHandler.cs
- BufferedReadStream.cs
- ConsumerConnectionPointCollection.cs
- DescendentsWalkerBase.cs
- SortedSet.cs
- Nullable.cs
- InfoCardTraceRecord.cs
- TableSectionStyle.cs
- ResourceSet.cs
- XmlHierarchicalEnumerable.cs
- CustomErrorsSection.cs
- CollectionView.cs
- SoapEnumAttribute.cs
- WindowsListViewSubItem.cs
- HotSpotCollection.cs
- TraceHelpers.cs
- ClientTargetSection.cs
- WebPartHeaderCloseVerb.cs
- Odbc32.cs
- RichTextBoxConstants.cs
- ExtenderHelpers.cs
- Empty.cs
- ExtendedProperty.cs
- AVElementHelper.cs