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
- XmlAttributeCollection.cs
- AssertUtility.cs
- SemanticBasicElement.cs
- WriteFileContext.cs
- WindowsEditBox.cs
- PageAsyncTask.cs
- DiscoveryClientProtocol.cs
- ClientBuildManagerCallback.cs
- GridViewColumn.cs
- Comparer.cs
- Trace.cs
- FormView.cs
- EncodedStreamFactory.cs
- MergeFilterQuery.cs
- Unit.cs
- SQLConvert.cs
- SizeChangedInfo.cs
- ViewStateException.cs
- FullTextState.cs
- DataConnectionHelper.cs
- WorkflowInstance.cs
- ClassGenerator.cs
- HtmlInputRadioButton.cs
- TypeElement.cs
- Pen.cs
- TreeViewItemAutomationPeer.cs
- WebBrowser.cs
- AuthenticationException.cs
- SqlRemoveConstantOrderBy.cs
- ComboBoxItem.cs
- OdbcCommand.cs
- ResolveNextArgumentWorkItem.cs
- HandlerWithFactory.cs
- MetadataPropertyAttribute.cs
- IDispatchConstantAttribute.cs
- XmlQueryType.cs
- ColorPalette.cs
- EventPropertyMap.cs
- InteropTrackingRecord.cs
- TextTreeDeleteContentUndoUnit.cs
- Ray3DHitTestResult.cs
- ZipIOModeEnforcingStream.cs
- PassportPrincipal.cs
- OdbcCommand.cs
- MsmqActivation.cs
- DockingAttribute.cs
- Util.cs
- RenderContext.cs
- SchemaObjectWriter.cs
- DbConnectionStringCommon.cs
- ToolStripItem.cs
- TypefaceCollection.cs
- ObjectViewEntityCollectionData.cs
- SoapHeaderException.cs
- UserControlParser.cs
- RemotingConfiguration.cs
- CookieHandler.cs
- FixedHyperLink.cs
- RpcCryptoRequest.cs
- UInt64.cs
- PerformanceCountersElement.cs
- DataTable.cs
- ErrorLog.cs
- XmlParser.cs
- ToolStripArrowRenderEventArgs.cs
- SuppressMergeCheckAttribute.cs
- ConfigurationElementCollection.cs
- BulletedListEventArgs.cs
- ConnectorEditor.cs
- QilIterator.cs
- InvokePattern.cs
- TTSEvent.cs
- EntityTypeEmitter.cs
- XmlSchemaResource.cs
- XsltFunctions.cs
- CodePageUtils.cs
- QuarticEase.cs
- GridPattern.cs
- OdbcConnectionPoolProviderInfo.cs
- TrustManagerMoreInformation.cs
- WeakRefEnumerator.cs
- CompareValidator.cs
- WebPartMinimizeVerb.cs
- WebDisplayNameAttribute.cs
- EncryptedType.cs
- ObjectViewQueryResultData.cs
- RectangleF.cs
- StaticExtensionConverter.cs
- DataGridView.cs
- CodeCatchClause.cs
- ThreadStaticAttribute.cs
- InternalCache.cs
- ConsumerConnectionPoint.cs
- AutomationPeer.cs
- ControlSerializer.cs
- HttpHeaderCollection.cs
- ProviderMetadata.cs
- Internal.cs
- ListManagerBindingsCollection.cs
- PseudoWebRequest.cs