Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SmiRequestExecutor.cs
- OptimizerPatterns.cs
- CheckedListBox.cs
- AutoResizedEvent.cs
- Inline.cs
- SqlWebEventProvider.cs
- ModifiableIteratorCollection.cs
- LongMinMaxAggregationOperator.cs
- VisualTarget.cs
- SystemUdpStatistics.cs
- EndpointDiscoveryElement.cs
- InputMethod.cs
- IISUnsafeMethods.cs
- ReflectionUtil.cs
- CmsInterop.cs
- CodePropertyReferenceExpression.cs
- MetadataArtifactLoaderComposite.cs
- AesManaged.cs
- Types.cs
- RawKeyboardInputReport.cs
- SymbolType.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- TextServicesPropertyRanges.cs
- CompletedAsyncResult.cs
- Vector.cs
- BufferedGraphics.cs
- AppSettingsExpressionBuilder.cs
- XmlSerializerVersionAttribute.cs
- BrowserCapabilitiesFactory35.cs
- HostVisual.cs
- WindowsTitleBar.cs
- UrlMappingsModule.cs
- ThemeableAttribute.cs
- OutputWindow.cs
- SerializationUtilities.cs
- TextEditorLists.cs
- XPathDocumentIterator.cs
- DataBoundControlAdapter.cs
- TempFiles.cs
- DrawingImage.cs
- WizardPanel.cs
- TemplateXamlParser.cs
- RayHitTestParameters.cs
- DataGridBoolColumn.cs
- ClientApiGenerator.cs
- Policy.cs
- CalendarKeyboardHelper.cs
- DataServiceException.cs
- HttpBrowserCapabilitiesBase.cs
- FileDetails.cs
- COM2Enum.cs
- SerializationStore.cs
- Array.cs
- EditBehavior.cs
- Vector3DConverter.cs
- UpDownEvent.cs
- WebPartTransformer.cs
- ResourceManager.cs
- SizeFConverter.cs
- TreeNodeSelectionProcessor.cs
- PersonalizableTypeEntry.cs
- GroupBox.cs
- MimeAnyImporter.cs
- FunctionImportElement.cs
- XamlWriter.cs
- InterleavedZipPartStream.cs
- DurableEnlistmentState.cs
- DataServiceConfiguration.cs
- InkCanvasAutomationPeer.cs
- AlternateViewCollection.cs
- DbSetClause.cs
- ToolStripPanelRenderEventArgs.cs
- HttpHostedTransportConfiguration.cs
- HttpContext.cs
- ListParagraph.cs
- ServiceHttpHandlerFactory.cs
- RuntimeConfig.cs
- InvokeProviderWrapper.cs
- EqualityComparer.cs
- ValidatingReaderNodeData.cs
- CodeCommentStatementCollection.cs
- KeyNotFoundException.cs
- DataBindingHandlerAttribute.cs
- DataColumnChangeEvent.cs
- NativeObjectSecurity.cs
- DesignerVerbToolStripMenuItem.cs
- PointF.cs
- AbstractSvcMapFileLoader.cs
- TransactionInformation.cs
- DoubleStorage.cs
- SingleSelectRootGridEntry.cs
- MultiSelector.cs
- Int16KeyFrameCollection.cs
- TCPClient.cs
- DBConcurrencyException.cs
- TextParagraphView.cs
- TaiwanLunisolarCalendar.cs
- ListControlStringCollectionEditor.cs
- LogManagementAsyncResult.cs
- GridViewDeletedEventArgs.cs