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
- ResXResourceReader.cs
- Dictionary.cs
- XPathAncestorQuery.cs
- ContactManager.cs
- HitTestWithPointDrawingContextWalker.cs
- PageThemeCodeDomTreeGenerator.cs
- RectConverter.cs
- DependencyPropertyHelper.cs
- TemplateKeyConverter.cs
- Variable.cs
- SocketAddress.cs
- ECDsaCng.cs
- TraceContext.cs
- HtmlInputSubmit.cs
- ValidatorUtils.cs
- complextypematerializer.cs
- wgx_commands.cs
- AppearanceEditorPart.cs
- IdnMapping.cs
- BitmapEncoder.cs
- PrintController.cs
- XXXInfos.cs
- LogStore.cs
- DataGridViewColumn.cs
- ConfigurationStrings.cs
- X509UI.cs
- SponsorHelper.cs
- TypeConstant.cs
- ValueTable.cs
- BitmapEffectInput.cs
- Effect.cs
- TrackingStringDictionary.cs
- LambdaCompiler.Logical.cs
- ListView.cs
- ExeConfigurationFileMap.cs
- srgsitem.cs
- InstanceContextManager.cs
- SizeConverter.cs
- GetIndexBinder.cs
- InkPresenter.cs
- Oci.cs
- ProfilePropertySettingsCollection.cs
- StrongName.cs
- ConfigurationPropertyCollection.cs
- KeyConverter.cs
- EventRouteFactory.cs
- Knowncolors.cs
- WorkingDirectoryEditor.cs
- TextEditorLists.cs
- ForceCopyBuildProvider.cs
- SelectingProviderEventArgs.cs
- FlowLayout.cs
- PermissionSetEnumerator.cs
- DummyDataSource.cs
- SyndicationSerializer.cs
- MultiplexingFormatMapping.cs
- Brush.cs
- ApplicationDirectory.cs
- OverrideMode.cs
- CompModSwitches.cs
- TextEndOfParagraph.cs
- ImpersonationContext.cs
- FixedPosition.cs
- UpdateProgress.cs
- HttpSessionStateWrapper.cs
- Tokenizer.cs
- RoleGroupCollection.cs
- DialogResultConverter.cs
- DebugView.cs
- BaseTemplateBuildProvider.cs
- FormsAuthenticationCredentials.cs
- DmlSqlGenerator.cs
- PlacementWorkspace.cs
- DoubleAnimationClockResource.cs
- ArrayConverter.cs
- HttpException.cs
- UInt16.cs
- columnmapkeybuilder.cs
- XmlEntityReference.cs
- AssemblyAssociatedContentFileAttribute.cs
- HexParser.cs
- EntityDataReader.cs
- BinaryNode.cs
- ReachDocumentSequenceSerializerAsync.cs
- TableHeaderCell.cs
- ChineseLunisolarCalendar.cs
- PartDesigner.cs
- CachedRequestParams.cs
- ExpressionCopier.cs
- ConsoleKeyInfo.cs
- SecurityKeyType.cs
- LoopExpression.cs
- FrameDimension.cs
- Model3D.cs
- MD5CryptoServiceProvider.cs
- ToolStripSplitStackLayout.cs
- ScrollBar.cs
- Selector.cs
- AudioFormatConverter.cs
- HtmlTernaryTree.cs