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
- TransformerInfo.cs
- Control.cs
- TriggerAction.cs
- WorkflowFormatterBehavior.cs
- OutputScope.cs
- CompressionTransform.cs
- AdPostCacheSubstitution.cs
- InputReferenceExpression.cs
- MenuRendererClassic.cs
- OutputCacheSettings.cs
- RightsManagementPermission.cs
- ObjectViewEntityCollectionData.cs
- AsymmetricAlgorithm.cs
- UnknownExceptionActionHelper.cs
- ControlBuilder.cs
- BinaryExpression.cs
- AsymmetricAlgorithm.cs
- ButtonBase.cs
- invalidudtexception.cs
- ScriptingRoleServiceSection.cs
- StateChangeEvent.cs
- UidManager.cs
- ForwardPositionQuery.cs
- GeometryDrawing.cs
- _WinHttpWebProxyDataBuilder.cs
- StringValidator.cs
- RadioButtonStandardAdapter.cs
- ObjectTag.cs
- Pkcs7Recipient.cs
- WindowsScroll.cs
- StorageAssociationSetMapping.cs
- SafeEventLogReadHandle.cs
- WindowsToolbarAsMenu.cs
- _CacheStreams.cs
- SplitterCancelEvent.cs
- HandoffBehavior.cs
- ElementHostPropertyMap.cs
- FigureParagraph.cs
- TakeQueryOptionExpression.cs
- CellQuery.cs
- FormDocumentDesigner.cs
- X509ThumbprintKeyIdentifierClause.cs
- DataGridRowAutomationPeer.cs
- MultipartContentParser.cs
- CngAlgorithm.cs
- Int32Converter.cs
- CachedBitmap.cs
- CommonProperties.cs
- HttpChannelHelpers.cs
- PageBuildProvider.cs
- IisTraceWebEventProvider.cs
- DynamicPropertyReader.cs
- Repeater.cs
- InternalsVisibleToAttribute.cs
- VerticalAlignConverter.cs
- ConfigXmlText.cs
- XmlSchemaInclude.cs
- ListViewTableCell.cs
- PackageFilter.cs
- EnumMember.cs
- Vector3DValueSerializer.cs
- UserControlCodeDomTreeGenerator.cs
- OleDbRowUpdatingEvent.cs
- DataColumnMapping.cs
- ManifestBasedResourceGroveler.cs
- Utils.cs
- EventDescriptorCollection.cs
- XsdBuilder.cs
- DefaultValidator.cs
- SettingsProperty.cs
- SignatureDescription.cs
- Cell.cs
- GridViewRowEventArgs.cs
- DataGridCommandEventArgs.cs
- LogReserveAndAppendState.cs
- UInt64Storage.cs
- Int32Rect.cs
- MessageAction.cs
- RewritingPass.cs
- SamlSecurityToken.cs
- DataGridViewRowPrePaintEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- HyperLink.cs
- TdsParameterSetter.cs
- EncoderFallback.cs
- SystemGatewayIPAddressInformation.cs
- PassportIdentity.cs
- WebPartRestoreVerb.cs
- TrackingQueryElement.cs
- SiteMapProvider.cs
- SynchronizationScope.cs
- Int16AnimationBase.cs
- EngineSite.cs
- Fx.cs
- CodeDirectoryCompiler.cs
- RTLAwareMessageBox.cs
- ImageCollectionEditor.cs
- DatasetMethodGenerator.cs
- Container.cs
- SessionStateContainer.cs