Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- TypeDescriptionProviderAttribute.cs
- QuaternionAnimation.cs
- Rfc4050KeyFormatter.cs
- ElementHost.cs
- complextypematerializer.cs
- EnumValAlphaComparer.cs
- LocalizabilityAttribute.cs
- TextWriter.cs
- FrameDimension.cs
- CategoryGridEntry.cs
- LinqExpressionNormalizer.cs
- XmlQueryCardinality.cs
- ObjRef.cs
- WindowsScrollBar.cs
- Guid.cs
- XamlTreeBuilderBamlRecordWriter.cs
- GridViewColumn.cs
- DbModificationCommandTree.cs
- UnsafeNativeMethodsPenimc.cs
- ObjectReaderCompiler.cs
- ChameleonKey.cs
- XmlSchemaNotation.cs
- FormViewUpdatedEventArgs.cs
- EncoderFallback.cs
- TimerTable.cs
- Stopwatch.cs
- MailSettingsSection.cs
- SemaphoreSecurity.cs
- CheckBoxAutomationPeer.cs
- util.cs
- NavigationWindow.cs
- ApplicationInfo.cs
- TextSimpleMarkerProperties.cs
- Table.cs
- RequiredFieldValidator.cs
- HandlerWithFactory.cs
- DataGridViewCellValidatingEventArgs.cs
- EllipseGeometry.cs
- DefaultAssemblyResolver.cs
- AnchorEditor.cs
- RadioButtonBaseAdapter.cs
- TranslateTransform3D.cs
- DeviceContext.cs
- ISFClipboardData.cs
- PassportPrincipal.cs
- CollectionContainer.cs
- FixedSOMTableCell.cs
- StringAnimationUsingKeyFrames.cs
- TypeBinaryExpression.cs
- TitleStyle.cs
- Interlocked.cs
- ValuePatternIdentifiers.cs
- IImplicitResourceProvider.cs
- Wildcard.cs
- SoapAttributeOverrides.cs
- TemplateAction.cs
- TextEmbeddedObject.cs
- ValidationErrorCollection.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- CqlLexer.cs
- ComponentResourceKeyConverter.cs
- OverflowException.cs
- C14NUtil.cs
- PrintPreviewDialog.cs
- X509Utils.cs
- ByteStack.cs
- DbSourceParameterCollection.cs
- PointAnimationClockResource.cs
- WebContext.cs
- TextureBrush.cs
- CharacterShapingProperties.cs
- AttributeQuery.cs
- HMACSHA384.cs
- WindowPattern.cs
- ApplyImportsAction.cs
- Trace.cs
- PropertyDescriptorGridEntry.cs
- ConnectionStringsExpressionBuilder.cs
- TransformerInfo.cs
- EndpointAddressElementBase.cs
- CodeObject.cs
- SymLanguageVendor.cs
- SqlFormatter.cs
- XPathScanner.cs
- HttpCacheParams.cs
- ObjectDataSource.cs
- KerberosReceiverSecurityToken.cs
- SqlDataSourceRefreshSchemaForm.cs
- Query.cs
- StructureChangedEventArgs.cs
- OutputScopeManager.cs
- KnownBoxes.cs
- PageSettings.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- Main.cs
- AnnotationDocumentPaginator.cs
- TimeoutValidationAttribute.cs
- ErrorFormatter.cs
- TextWriter.cs
- GcHandle.cs