Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / Ink / ClipboardData.cs / 1 / ClipboardData.cs
//---------------------------------------------------------------------------- // // File: ClipboardData.cs // // Description: // An abstract clipboard data class // // Features: // // History: // 11/17/2004 [....]: Created // // Copyright (C) 2001 by Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Security; namespace MS.Internal.Ink { internal abstract class ClipboardData { //------------------------------------------------------------------------------- // // Constructors // //------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // // Internal Methods // //------------------------------------------------------------------------------- #region Internal Methods ////// Copy the data to the IDataObject /// /// The IDataObject instance ///Returns true if the data is copied. Otherwise, returns false ////// Critical: This code copies ink content to the clipboard and accepts a dataobject which is /// created under an elevation /// [SecurityCritical] internal bool CopyToDataObject(IDataObject dataObject) { // Check if the data can be copied if ( CanCopy() ) { // Do copy. DoCopy(dataObject); return true; } return false; } ////// Paste the data from the IDataObject /// /// The IDataObject instance internal void PasteFromDataObject(IDataObject dataObject) { // Check if we can paste. if ( CanPaste(dataObject) ) { // Do Paste. DoPaste(dataObject); } } internal abstract bool CanPaste(IDataObject dataObject); #endregion Internal Methods //-------------------------------------------------------------------------------- // // Protected Methods // //-------------------------------------------------------------------------------- #region Protected Methods // Those are the abstract methods which need to be implemented in the derived classes. protected abstract bool CanCopy(); protected abstract void DoCopy(IDataObject dataObject); protected abstract void DoPaste(IDataObject dataObject); #endregion Protected Methods } } // 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
- CommandExpr.cs
- AuthenticationException.cs
- SnapshotChangeTrackingStrategy.cs
- FontEmbeddingManager.cs
- WindowsHyperlink.cs
- StorageAssociationSetMapping.cs
- DataListItem.cs
- ReflectionHelper.cs
- ExpressionBindings.cs
- Timeline.cs
- Evaluator.cs
- StrongNamePublicKeyBlob.cs
- SQLDateTime.cs
- AssemblyResolver.cs
- SelectManyQueryOperator.cs
- ToolStripArrowRenderEventArgs.cs
- SafeReversePInvokeHandle.cs
- TypeDependencyAttribute.cs
- HttpProfileGroupBase.cs
- BuildProviderInstallComponent.cs
- XmlMapping.cs
- VirtualPath.cs
- Crc32.cs
- WindowClosedEventArgs.cs
- RepeatBehavior.cs
- IncrementalCompileAnalyzer.cs
- ExpressionBinding.cs
- OdbcParameterCollection.cs
- DataBoundControlHelper.cs
- TextEncodedRawTextWriter.cs
- SecurityState.cs
- MetadataCache.cs
- CodeTypeParameter.cs
- MetadataUtilsSmi.cs
- HebrewCalendar.cs
- TypeViewSchema.cs
- RootBuilder.cs
- RtfControlWordInfo.cs
- Guid.cs
- SelectionListDesigner.cs
- SizeChangedEventArgs.cs
- FontInfo.cs
- ScrollChrome.cs
- OdbcErrorCollection.cs
- AutomationPatternInfo.cs
- TextSchema.cs
- TileModeValidation.cs
- TablePattern.cs
- ImportOptions.cs
- MulticastOption.cs
- DoubleAnimationUsingKeyFrames.cs
- DocumentApplicationJournalEntry.cs
- SchemaUtility.cs
- NativeCppClassAttribute.cs
- Selection.cs
- KnownBoxes.cs
- SmiEventSink.cs
- DesignParameter.cs
- HandleCollector.cs
- OperandQuery.cs
- InputReport.cs
- regiisutil.cs
- LineProperties.cs
- DbMetaDataCollectionNames.cs
- SafePEFileHandle.cs
- WebPartManagerInternals.cs
- FlowDocumentScrollViewer.cs
- ExportException.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- Message.cs
- RemotingSurrogateSelector.cs
- Int32Converter.cs
- WebControlsSection.cs
- CodeDefaultValueExpression.cs
- EventRoute.cs
- SoapSchemaImporter.cs
- PixelShader.cs
- TargetException.cs
- ServiceDocumentFormatter.cs
- TypeInfo.cs
- COM2AboutBoxPropertyDescriptor.cs
- Vector3DConverter.cs
- XmlSecureResolver.cs
- AnimationLayer.cs
- ExtendedPropertiesHandler.cs
- ToolStripItemClickedEventArgs.cs
- _ListenerRequestStream.cs
- AttributeEmitter.cs
- LoginView.cs
- XmlWriterTraceListener.cs
- SqlResolver.cs
- CornerRadiusConverter.cs
- Parameter.cs
- ProcessModelSection.cs
- BinaryFormatterWriter.cs
- SqlVisitor.cs
- smtpconnection.cs
- DrawingGroup.cs
- ObjectKeyFrameCollection.cs
- ClonableStack.cs