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
- RadioButtonRenderer.cs
- UnsafeNativeMethods.cs
- WebPartConnectionsConfigureVerb.cs
- SmiContext.cs
- BooleanFacetDescriptionElement.cs
- BounceEase.cs
- ClosableStream.cs
- XmlSchemaType.cs
- MailFileEditor.cs
- Icon.cs
- InvokerUtil.cs
- SignedXml.cs
- EmptyEnumerable.cs
- EntityModelBuildProvider.cs
- IriParsingElement.cs
- Exceptions.cs
- MsmqReceiveHelper.cs
- SoapConverter.cs
- RuntimeConfigLKG.cs
- QueryStringParameter.cs
- TrackPoint.cs
- WebHttpDispatchOperationSelector.cs
- ClassHandlersStore.cs
- RtfNavigator.cs
- figurelength.cs
- DependencyObject.cs
- WpfPayload.cs
- RectangleGeometry.cs
- AvTraceFormat.cs
- ExpressionBinding.cs
- HandleRef.cs
- ProcessHostConfigUtils.cs
- SoapElementAttribute.cs
- Rules.cs
- ConstNode.cs
- PerformanceCounterCategory.cs
- BehaviorEditorPart.cs
- TextPointer.cs
- DrawingState.cs
- NullableFloatSumAggregationOperator.cs
- MediaContext.cs
- PreloadedPackages.cs
- CustomLineCap.cs
- OleDbTransaction.cs
- CertificateManager.cs
- StreamGeometry.cs
- CellCreator.cs
- UntrustedRecipientException.cs
- RoleService.cs
- FrameworkContentElementAutomationPeer.cs
- WebBrowserContainer.cs
- BindingOperations.cs
- NetMsmqBindingElement.cs
- EventRouteFactory.cs
- Stackframe.cs
- ComponentCollection.cs
- BooleanAnimationUsingKeyFrames.cs
- SystemIPInterfaceStatistics.cs
- UserNamePasswordValidationMode.cs
- QilList.cs
- ThreadInterruptedException.cs
- UrlMappingCollection.cs
- DataSysAttribute.cs
- WindowsClaimSet.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ZipIOLocalFileHeader.cs
- SqlUdtInfo.cs
- ObjectDataSourceFilteringEventArgs.cs
- RotationValidation.cs
- AssemblyBuilder.cs
- CssClassPropertyAttribute.cs
- PackageDigitalSignature.cs
- DataGridView.cs
- ContentElementCollection.cs
- PairComparer.cs
- CompilerErrorCollection.cs
- XPathNodeInfoAtom.cs
- LinearGradientBrush.cs
- CollectionType.cs
- ScriptingJsonSerializationSection.cs
- ListChunk.cs
- TableParagraph.cs
- SoapReflectionImporter.cs
- LogEntryHeaderv1Deserializer.cs
- ResourceDisplayNameAttribute.cs
- ECDiffieHellmanCng.cs
- CompatibleComparer.cs
- CreateUserWizardStep.cs
- XmlNotation.cs
- HandlerWithFactory.cs
- URL.cs
- ParagraphResult.cs
- mediapermission.cs
- UxThemeWrapper.cs
- StringPropertyBuilder.cs
- SupportsEventValidationAttribute.cs
- RuntimeArgumentHandle.cs
- ToolStripDropDownClosingEventArgs.cs
- XmlCharType.cs
- SemaphoreSlim.cs