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
- RegexParser.cs
- Utils.cs
- HtmlInputText.cs
- ServiceRoute.cs
- TargetException.cs
- WebControlParameterProxy.cs
- SqlConnectionFactory.cs
- PropertyEmitterBase.cs
- EntityDataSourceWrapperCollection.cs
- BulletChrome.cs
- DispatcherHookEventArgs.cs
- InkCollectionBehavior.cs
- RectKeyFrameCollection.cs
- Rotation3D.cs
- ContainerSelectorBehavior.cs
- sqlmetadatafactory.cs
- Point3DValueSerializer.cs
- AgileSafeNativeMemoryHandle.cs
- XmlILCommand.cs
- ConfigurationManagerInternalFactory.cs
- Line.cs
- ClientCultureInfo.cs
- WeakReferenceList.cs
- QilList.cs
- TableItemPatternIdentifiers.cs
- OutOfProcStateClientManager.cs
- InlineCollection.cs
- NameTable.cs
- KeyFrames.cs
- GradientStop.cs
- RotateTransform3D.cs
- DPAPIProtectedConfigurationProvider.cs
- ListBindingConverter.cs
- GeometryCollection.cs
- RenderContext.cs
- ButtonBaseAutomationPeer.cs
- IApplicationTrustManager.cs
- Stylesheet.cs
- PcmConverter.cs
- TableLayoutSettingsTypeConverter.cs
- TextSelectionHelper.cs
- ReaderOutput.cs
- _NetworkingPerfCounters.cs
- HTMLTagNameToTypeMapper.cs
- SecurityRuntime.cs
- PriorityBindingExpression.cs
- _SpnDictionary.cs
- Listbox.cs
- UnsafeNativeMethods.cs
- BeginStoryboard.cs
- _LocalDataStore.cs
- FileDialog_Vista_Interop.cs
- TraceUtility.cs
- DecoratedNameAttribute.cs
- RegisteredArrayDeclaration.cs
- ChangePassword.cs
- ValidationManager.cs
- StylusLogic.cs
- _TimerThread.cs
- XmlAnyElementAttributes.cs
- _ProxyRegBlob.cs
- ServerValidateEventArgs.cs
- BuildProvider.cs
- DataServiceConfiguration.cs
- MethodRental.cs
- TypeInitializationException.cs
- QilXmlReader.cs
- PinnedBufferMemoryStream.cs
- InheritanceAttribute.cs
- ExtendedPropertyInfo.cs
- LocalsItemDescription.cs
- ExtensionSimplifierMarkupObject.cs
- ImageAutomationPeer.cs
- XmlToDatasetMap.cs
- Resources.Designer.cs
- CachedTypeface.cs
- ConstructorBuilder.cs
- Win32PrintDialog.cs
- cache.cs
- XmlObjectSerializerContext.cs
- HostingEnvironmentException.cs
- SystemKeyConverter.cs
- SafeFileHandle.cs
- PhysicalOps.cs
- SchemeSettingElementCollection.cs
- XhtmlBasicPageAdapter.cs
- CharacterString.cs
- DataBindingCollection.cs
- HttpRawResponse.cs
- AcceleratedTokenProvider.cs
- SiblingIterators.cs
- TdsParserHelperClasses.cs
- FontUnit.cs
- DateTimeValueSerializer.cs
- ApplicationException.cs
- CompilerError.cs
- StructuredProperty.cs
- DelegatingChannelListener.cs
- ResourceProviderFactory.cs
- PeerCollaboration.cs