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
- FileUtil.cs
- MouseGestureConverter.cs
- mda.cs
- validationstate.cs
- Camera.cs
- ProcessThreadDesigner.cs
- RouteData.cs
- XmlParserContext.cs
- SmtpFailedRecipientsException.cs
- httpstaticobjectscollection.cs
- WebPartTransformerCollection.cs
- VoiceSynthesis.cs
- DrawingCollection.cs
- ProfileService.cs
- CreateUserWizardStep.cs
- SelectedGridItemChangedEvent.cs
- XmlQueryType.cs
- Floater.cs
- MonthChangedEventArgs.cs
- RequestContext.cs
- ProfileGroupSettingsCollection.cs
- PointUtil.cs
- VirtualPathProvider.cs
- LayoutSettings.cs
- VectorAnimationBase.cs
- TextBox.cs
- ComboBoxHelper.cs
- WindowsAuthenticationEventArgs.cs
- HttpBrowserCapabilitiesWrapper.cs
- DataListItem.cs
- HttpClientCertificate.cs
- tooltip.cs
- TransformerTypeCollection.cs
- NativeCompoundFileAPIs.cs
- NullableDoubleAverageAggregationOperator.cs
- SchemaImporterExtension.cs
- HttpResponse.cs
- AddInProcess.cs
- AvTraceDetails.cs
- FixedSOMElement.cs
- Lazy.cs
- BamlRecordHelper.cs
- RequestCachePolicy.cs
- FileDialogPermission.cs
- CustomWebEventKey.cs
- RemoteWebConfigurationHostServer.cs
- QualifierSet.cs
- SettingsPropertyValue.cs
- RuntimeHelpers.cs
- SessionStateContainer.cs
- MenuBindingsEditor.cs
- cookiecollection.cs
- GetReadStreamResult.cs
- ResXResourceSet.cs
- Margins.cs
- UIPropertyMetadata.cs
- InputMethodStateTypeInfo.cs
- ManagementEventArgs.cs
- GradientBrush.cs
- BitmapEffectDrawingContextState.cs
- IdentityHolder.cs
- Debug.cs
- CommandField.cs
- EdmType.cs
- DBPropSet.cs
- SoapReflectionImporter.cs
- NavigationProperty.cs
- ToolboxItem.cs
- TypeForwardedToAttribute.cs
- WebServiceTypeData.cs
- AutomationProperties.cs
- NativeMethods.cs
- MulticastDelegate.cs
- InkCanvasSelection.cs
- BoolExpression.cs
- DataListCommandEventArgs.cs
- CellLabel.cs
- CryptographicAttribute.cs
- MobileErrorInfo.cs
- WebPartsPersonalization.cs
- QueryableDataSourceEditData.cs
- ButtonBaseDesigner.cs
- ListViewItemMouseHoverEvent.cs
- FileCodeGroup.cs
- DropDownHolder.cs
- PageAsyncTaskManager.cs
- compensatingcollection.cs
- TimeSpanValidator.cs
- HandledMouseEvent.cs
- StrokeCollection2.cs
- MarshalByValueComponent.cs
- XPathChildIterator.cs
- FileSystemWatcher.cs
- TagMapInfo.cs
- LineGeometry.cs
- NetworkInterface.cs
- GridViewUpdatedEventArgs.cs
- HostingEnvironmentSection.cs
- DataKey.cs
- ScriptReferenceBase.cs