Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Inflater.cs
- TokenBasedSetEnumerator.cs
- ReadWriteSpinLock.cs
- PackUriHelper.cs
- XmlLinkedNode.cs
- SamlAuthenticationStatement.cs
- ScrollItemPattern.cs
- StylusButton.cs
- TemplatedMailWebEventProvider.cs
- GlyphElement.cs
- PackageRelationship.cs
- unsafenativemethodstextservices.cs
- LocatorManager.cs
- WebPartAuthorizationEventArgs.cs
- SoapIgnoreAttribute.cs
- GlobalId.cs
- SimpleLine.cs
- ProgressBarRenderer.cs
- CompositeCollection.cs
- PaintValueEventArgs.cs
- ExtendedProperty.cs
- ShaderEffect.cs
- AmbiguousMatchException.cs
- CompilerLocalReference.cs
- JapaneseLunisolarCalendar.cs
- CodeDomConfigurationHandler.cs
- InstanceCreationEditor.cs
- XmlSchemaSimpleType.cs
- FloatUtil.cs
- DataGridComponentEditor.cs
- ToolStripComboBox.cs
- ToolStripItemClickedEventArgs.cs
- DispatcherHookEventArgs.cs
- XmlSchemaExternal.cs
- AncillaryOps.cs
- ResXBuildProvider.cs
- MetadataArtifactLoaderResource.cs
- WindowsToolbar.cs
- WebPartConnectionsCancelVerb.cs
- unsafenativemethodsother.cs
- EntityViewGenerator.cs
- RelatedPropertyManager.cs
- TraceUtils.cs
- RequestQueue.cs
- ListenerHandler.cs
- TableCellCollection.cs
- CornerRadius.cs
- ToolStripPanel.cs
- BCLDebug.cs
- EdmEntityTypeAttribute.cs
- TimelineGroup.cs
- RoleGroupCollection.cs
- ArrayWithOffset.cs
- NameTable.cs
- AggregateNode.cs
- DocumentGridContextMenu.cs
- BuildResult.cs
- MimePart.cs
- DesignerAutoFormat.cs
- XmlExtensionFunction.cs
- ClientSettingsSection.cs
- TypeConverterAttribute.cs
- TableLayoutStyleCollection.cs
- handlecollector.cs
- DateTimeUtil.cs
- DomainConstraint.cs
- MetadataItemSerializer.cs
- DelayLoadType.cs
- CmsInterop.cs
- VisualBrush.cs
- VisualBrush.cs
- XmlSchemaSubstitutionGroup.cs
- ObjectAssociationEndMapping.cs
- PassportIdentity.cs
- RelatedImageListAttribute.cs
- InstanceNotReadyException.cs
- CorrelationManager.cs
- ClientSettingsStore.cs
- AsyncPostBackErrorEventArgs.cs
- TableCellAutomationPeer.cs
- TypeUsage.cs
- CodeEventReferenceExpression.cs
- RegexParser.cs
- BindingGroup.cs
- DataServiceExpressionVisitor.cs
- DeferredSelectedIndexReference.cs
- EnumBuilder.cs
- ComboBox.cs
- BoundPropertyEntry.cs
- SimpleTypeResolver.cs
- SessionPageStatePersister.cs
- OutKeywords.cs
- OleDbTransaction.cs
- XmlAnyElementAttribute.cs
- StretchValidation.cs
- DuplexChannelFactory.cs
- Util.cs
- VisualBasic.cs
- PassportAuthenticationModule.cs
- AppDomain.cs