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
- TextEvent.cs
- RewritingValidator.cs
- WebControlAdapter.cs
- GenericUriParser.cs
- LockedHandleGlyph.cs
- HttpProfileBase.cs
- WebPartExportVerb.cs
- Expression.cs
- PageContentCollection.cs
- ScriptControl.cs
- ListViewAutomationPeer.cs
- StringSource.cs
- MaskDescriptors.cs
- QueryableDataSourceView.cs
- RegexGroup.cs
- Attribute.cs
- PageBreakRecord.cs
- DesignerSerializerAttribute.cs
- TypeUtils.cs
- LocatorBase.cs
- FontConverter.cs
- DataSourceIDConverter.cs
- CombinedGeometry.cs
- OleDbMetaDataFactory.cs
- XPathAncestorQuery.cs
- RequiredFieldValidator.cs
- DrawingBrush.cs
- MissingFieldException.cs
- XmlSerializationWriter.cs
- CompilerCollection.cs
- _UriTypeConverter.cs
- AutoGeneratedField.cs
- SystemIPGlobalStatistics.cs
- LinkLabel.cs
- InkCollectionBehavior.cs
- InputScopeNameConverter.cs
- ToggleProviderWrapper.cs
- InkSerializer.cs
- ButtonBaseDesigner.cs
- SQLInt16.cs
- StylusButtonCollection.cs
- StorageScalarPropertyMapping.cs
- EnterpriseServicesHelper.cs
- RepeaterCommandEventArgs.cs
- COM2ComponentEditor.cs
- CodeExpressionCollection.cs
- CSharpCodeProvider.cs
- OrderingExpression.cs
- UserCancellationException.cs
- X509AsymmetricSecurityKey.cs
- Stopwatch.cs
- ComponentManagerBroker.cs
- XmlSchemaExporter.cs
- TableRow.cs
- PauseStoryboard.cs
- StringAnimationUsingKeyFrames.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- MenuItemStyleCollection.cs
- XmlLoader.cs
- IntersectQueryOperator.cs
- GenericsInstances.cs
- XmlRootAttribute.cs
- FormClosedEvent.cs
- HtmlInputRadioButton.cs
- CroppedBitmap.cs
- Tokenizer.cs
- PropertyEntry.cs
- UDPClient.cs
- ScriptingScriptResourceHandlerSection.cs
- RSAOAEPKeyExchangeFormatter.cs
- WpfWebRequestHelper.cs
- WebMessageFormatHelper.cs
- DataControlFieldHeaderCell.cs
- SqlFactory.cs
- XmlRootAttribute.cs
- ToolStripMenuItem.cs
- SymmetricAlgorithm.cs
- ListItemCollection.cs
- DivideByZeroException.cs
- Point3DCollectionConverter.cs
- GlobalizationAssembly.cs
- ToggleButton.cs
- ToolStripContentPanelRenderEventArgs.cs
- SiteMapProvider.cs
- Point3DAnimationUsingKeyFrames.cs
- FileIOPermission.cs
- FileSystemWatcher.cs
- MessageQueueInstaller.cs
- RectangleF.cs
- Symbol.cs
- bindurihelper.cs
- TableLayoutStyleCollection.cs
- VariableAction.cs
- SqlDataSourceView.cs
- WebBrowserBase.cs
- Separator.cs
- FlowLayoutPanelDesigner.cs
- QilStrConcat.cs
- BitmapFrameEncode.cs
- OdbcInfoMessageEvent.cs