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
- ResourceKey.cs
- XmlDictionary.cs
- SqlBulkCopy.cs
- MemoryFailPoint.cs
- TypeConverterHelper.cs
- TextStore.cs
- MaskedTextBox.cs
- SharedDp.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- FileRecordSequenceHelper.cs
- FloaterParaClient.cs
- EmptyStringExpandableObjectConverter.cs
- AnnotationAdorner.cs
- InputEventArgs.cs
- basecomparevalidator.cs
- NaturalLanguageHyphenator.cs
- ServerProtocol.cs
- _NegoStream.cs
- DataRowCollection.cs
- TextEffect.cs
- CustomActivityDesigner.cs
- DefaultValueTypeConverter.cs
- ReadOnlyMetadataCollection.cs
- QilDataSource.cs
- HtmlTernaryTree.cs
- DefaultBinder.cs
- ValidationSettings.cs
- OwnerDrawPropertyBag.cs
- PageBreakRecord.cs
- PassportAuthenticationEventArgs.cs
- ColorAnimationUsingKeyFrames.cs
- DataKeyArray.cs
- HostingEnvironmentSection.cs
- _SecureChannel.cs
- LayoutManager.cs
- Visitor.cs
- ModuleBuilderData.cs
- ConfigurationStrings.cs
- DefaultAssemblyResolver.cs
- LambdaValue.cs
- DebuggerAttributes.cs
- DataControlImageButton.cs
- GeneralTransformGroup.cs
- WebBrowserNavigatedEventHandler.cs
- filewebrequest.cs
- EventWaitHandleSecurity.cs
- StateRuntime.cs
- Missing.cs
- FieldAccessException.cs
- DataGridViewRowStateChangedEventArgs.cs
- DataColumnSelectionConverter.cs
- GroupBox.cs
- ImplicitInputBrush.cs
- SettingsPropertyNotFoundException.cs
- ProgressChangedEventArgs.cs
- NullReferenceException.cs
- DefaultValueAttribute.cs
- Expressions.cs
- FontUnitConverter.cs
- UMPAttributes.cs
- PropertyInfoSet.cs
- ResourcePool.cs
- XmlSchemaNotation.cs
- ModelVisual3D.cs
- WorkflowRuntimeServiceElementCollection.cs
- Oid.cs
- SessionMode.cs
- ApplicationSecurityInfo.cs
- GenericAuthenticationEventArgs.cs
- TableItemPattern.cs
- CapacityStreamGeometryContext.cs
- Char.cs
- FormViewUpdatedEventArgs.cs
- TableCellCollection.cs
- ThrowOnMultipleAssignment.cs
- CursorConverter.cs
- RadioButton.cs
- FormViewAutoFormat.cs
- XsdValidatingReader.cs
- InnerItemCollectionView.cs
- CustomValidator.cs
- HtmlContainerControl.cs
- cookiecontainer.cs
- MutexSecurity.cs
- ComAwareEventInfo.cs
- EventListener.cs
- WindowsGraphics.cs
- CurrentChangingEventManager.cs
- ToolboxComponentsCreatingEventArgs.cs
- ParamArrayAttribute.cs
- PropertyPathConverter.cs
- ConsumerConnectionPointCollection.cs
- IsolatedStorageFilePermission.cs
- IdleTimeoutMonitor.cs
- ColorMatrix.cs
- CharUnicodeInfo.cs
- DataGridViewTopLeftHeaderCell.cs
- AsnEncodedData.cs
- DynamicExpression.cs
- TableLayoutPanelBehavior.cs