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
- CodeExpressionRuleDeclaration.cs
- SendMailErrorEventArgs.cs
- DuplicateWaitObjectException.cs
- DataGridSortCommandEventArgs.cs
- PersonalizablePropertyEntry.cs
- ColorAnimationBase.cs
- DurableInstanceProvider.cs
- PriorityBinding.cs
- TextRangeEditLists.cs
- NavigationProperty.cs
- TrustSection.cs
- DateTimeFormat.cs
- ChangeNode.cs
- JapaneseCalendar.cs
- HtmlCommandAdapter.cs
- Attributes.cs
- Char.cs
- Accessible.cs
- OdbcTransaction.cs
- EventManager.cs
- WebServiceData.cs
- Vector3DKeyFrameCollection.cs
- SurrogateSelector.cs
- ISAPIRuntime.cs
- OutputCacheEntry.cs
- OpenTypeLayoutCache.cs
- DayRenderEvent.cs
- XmlDigitalSignatureProcessor.cs
- HashSetDebugView.cs
- FileRecordSequence.cs
- PerformanceCounterCategory.cs
- DesignTimeTemplateParser.cs
- DockPattern.cs
- WorkflowWebHostingModule.cs
- RecommendedAsConfigurableAttribute.cs
- ProtocolsConfigurationHandler.cs
- LockCookie.cs
- EventLogQuery.cs
- CryptoStream.cs
- XmlBinaryReader.cs
- HtmlLabelAdapter.cs
- OdbcStatementHandle.cs
- Buffer.cs
- Rect.cs
- EnumConverter.cs
- EventMappingSettings.cs
- AutomationProperty.cs
- SqlDataSourceView.cs
- SerializableTypeCodeDomSerializer.cs
- FunctionUpdateCommand.cs
- TaiwanCalendar.cs
- SqlNotificationRequest.cs
- StateBag.cs
- BlockUIContainer.cs
- RegexCaptureCollection.cs
- GB18030Encoding.cs
- activationcontext.cs
- SynchronizationLockException.cs
- ImageSource.cs
- DecimalAnimationUsingKeyFrames.cs
- HMACSHA384.cs
- CurrencyWrapper.cs
- ControlPersister.cs
- HTMLTextWriter.cs
- HtmlListAdapter.cs
- UDPClient.cs
- ToolboxControl.cs
- Menu.cs
- ExpressionBuilder.cs
- Schema.cs
- MachineKeySection.cs
- QueryContinueDragEventArgs.cs
- SimpleMailWebEventProvider.cs
- ValidatedMobileControlConverter.cs
- RouteItem.cs
- SemanticBasicElement.cs
- Command.cs
- MenuDesigner.cs
- AdornerLayer.cs
- KeySpline.cs
- DataGridTextBox.cs
- LayoutEditorPart.cs
- ComNativeDescriptor.cs
- Activator.cs
- XhtmlCssHandler.cs
- TableChangeProcessor.cs
- Executor.cs
- DateTimeOffsetAdapter.cs
- SqlDataSourceEnumerator.cs
- KnowledgeBase.cs
- Button.cs
- RuntimeArgumentHandle.cs
- ContentValidator.cs
- MetadataAssemblyHelper.cs
- PropertyValue.cs
- DataGridViewComboBoxColumn.cs
- RegexFCD.cs
- OleDbCommand.cs
- InvalidFilterCriteriaException.cs
- DesignerDataRelationship.cs