Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]: 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
- SortDescriptionCollection.cs
- PasswordTextContainer.cs
- WebSysDefaultValueAttribute.cs
- ChannelDispatcherCollection.cs
- ReferencedAssembly.cs
- UTF7Encoding.cs
- sqlinternaltransaction.cs
- TextStore.cs
- RequiredAttributeAttribute.cs
- MetadataItemEmitter.cs
- TextBoxDesigner.cs
- SafeRightsManagementHandle.cs
- SchemaCollectionCompiler.cs
- BitmapScalingModeValidation.cs
- RubberbandSelector.cs
- InstalledFontCollection.cs
- KeyBinding.cs
- StringValidator.cs
- SchemaElementLookUpTableEnumerator.cs
- XmlElementAttribute.cs
- EditCommandColumn.cs
- UndirectedGraph.cs
- ListView.cs
- DataTableMappingCollection.cs
- RadioButtonFlatAdapter.cs
- FlowDocumentScrollViewer.cs
- GenericEnumerator.cs
- DrawingBrush.cs
- EngineSite.cs
- TextProperties.cs
- SystemFonts.cs
- NativeWrapper.cs
- EntityDataSourceSelectedEventArgs.cs
- ValueType.cs
- DataListItemCollection.cs
- ToolStripSplitStackLayout.cs
- DescriptionAttribute.cs
- DefaultPropertyAttribute.cs
- TraceContextRecord.cs
- Deflater.cs
- ContentPlaceHolder.cs
- UpdateTranslator.cs
- FaultDesigner.cs
- KeyFrames.cs
- SimpleBitVector32.cs
- Timeline.cs
- _BasicClient.cs
- MouseEventArgs.cs
- HttpContext.cs
- RefreshPropertiesAttribute.cs
- WsdlWriter.cs
- BaseEntityWrapper.cs
- ResourcesChangeInfo.cs
- ControlBuilderAttribute.cs
- ExtendedPropertyDescriptor.cs
- GridView.cs
- InternalsVisibleToAttribute.cs
- BuiltInExpr.cs
- SettingsAttributes.cs
- MarshalByRefObject.cs
- DrawingAttributes.cs
- TextProperties.cs
- AuthenticationModuleElementCollection.cs
- StaticFileHandler.cs
- ValueTypeFixupInfo.cs
- CommandBindingCollection.cs
- Behavior.cs
- Parameter.cs
- storepermission.cs
- CodeValidator.cs
- SettingsAttributeDictionary.cs
- MetadataException.cs
- SQLInt16Storage.cs
- BaseValidator.cs
- ByteStorage.cs
- InProcStateClientManager.cs
- LogLogRecordEnumerator.cs
- StylusPointPropertyUnit.cs
- DemultiplexingClientMessageFormatter.cs
- OdbcConnectionStringbuilder.cs
- ScanQueryOperator.cs
- XmlWriterSettings.cs
- BuildDependencySet.cs
- SystemResourceHost.cs
- WindowsSysHeader.cs
- TextClipboardData.cs
- Config.cs
- TabControlAutomationPeer.cs
- FormsAuthenticationModule.cs
- ProfilePropertySettingsCollection.cs
- LoggedException.cs
- WebConfigurationFileMap.cs
- SkewTransform.cs
- WebConfigurationFileMap.cs
- LZCodec.cs
- ProcessThreadCollection.cs
- ModifierKeysValueSerializer.cs
- DesignerProperties.cs
- TableRowCollection.cs
- _KerberosClient.cs