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
- XDRSchema.cs
- X509Certificate2.cs
- IncrementalReadDecoders.cs
- SupportsEventValidationAttribute.cs
- FixedLineResult.cs
- DataFieldCollectionEditor.cs
- DesignColumn.cs
- ClientBuildManagerCallback.cs
- TempFiles.cs
- TransformGroup.cs
- DataServiceBuildProvider.cs
- EditingCoordinator.cs
- Util.cs
- Domain.cs
- PointConverter.cs
- TextChange.cs
- CommandDevice.cs
- SqlNamer.cs
- InvokeBinder.cs
- Queue.cs
- CodeDirectionExpression.cs
- Decoder.cs
- PhysicalAddress.cs
- PointF.cs
- HtmlElement.cs
- SoapProtocolImporter.cs
- MailBnfHelper.cs
- TimeoutTimer.cs
- InfocardInteractiveChannelInitializer.cs
- StorageSetMapping.cs
- HttpInputStream.cs
- HMACRIPEMD160.cs
- ProgressChangedEventArgs.cs
- HttpListenerResponse.cs
- OpenTypeCommon.cs
- CodeDomConfigurationHandler.cs
- UIServiceHelper.cs
- HttpAsyncResult.cs
- SmiRequestExecutor.cs
- ExceptionUtil.cs
- TypeUtil.cs
- InfoCardCryptoHelper.cs
- WebPartEditorCancelVerb.cs
- DecimalConstantAttribute.cs
- DesignerWithHeader.cs
- StringWriter.cs
- CustomValidator.cs
- MouseActionValueSerializer.cs
- XmlUrlResolver.cs
- MarkupCompiler.cs
- DetailsViewActionList.cs
- WmlImageAdapter.cs
- Tokenizer.cs
- WaitForChangedResult.cs
- RTLAwareMessageBox.cs
- DigitShape.cs
- NativeMethods.cs
- XmlSerializerFactory.cs
- GeometryModel3D.cs
- AdornerLayer.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ClientApiGenerator.cs
- DbConnectionHelper.cs
- FloatMinMaxAggregationOperator.cs
- XmlNamespaceMappingCollection.cs
- TreeNodeBindingCollection.cs
- DesignBinding.cs
- EventProviderWriter.cs
- TagElement.cs
- MbpInfo.cs
- OdbcRowUpdatingEvent.cs
- Viewport2DVisual3D.cs
- CodeArrayCreateExpression.cs
- PageThemeBuildProvider.cs
- RawTextInputReport.cs
- __ComObject.cs
- SmiMetaData.cs
- NetNamedPipeSecurity.cs
- Transform3D.cs
- MouseEvent.cs
- BamlLocalizer.cs
- SafeBitVector32.cs
- DataSetMappper.cs
- FieldNameLookup.cs
- FormClosedEvent.cs
- sortedlist.cs
- ActivationWorker.cs
- ConnectionStringsExpressionBuilder.cs
- ContractNamespaceAttribute.cs
- JsonFormatReaderGenerator.cs
- Asn1IntegerConverter.cs
- Misc.cs
- MethodCallTranslator.cs
- ComponentChangingEvent.cs
- SafeNativeMethods.cs
- TextEditorContextMenu.cs
- _DisconnectOverlappedAsyncResult.cs
- AspNetHostingPermission.cs
- MultipleViewPattern.cs
- StorageEntityContainerMapping.cs