Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / DataFormat.cs / 1 / DataFormat.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Manage the data format. // // See spec at http://avalon/uis/Data%20Transfer%20clipboard%20dragdrop/Avalon%20Data%20Transfer%20Object.htm // // History: // 08/16/2002 : sangilj Created // //--------------------------------------------------------------------------- using MS.Internal.PresentationCore; namespace System.Windows { #region DataFormat Class ////// Represents a data format type. /// public sealed class DataFormat { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Initializes a new instance of the DataFormat class and specifies format name and id. /// public DataFormat(string name, int id) { if (name == null) { throw new ArgumentNullException("name"); } if (name == string.Empty) { throw new ArgumentException(SR.Get(SRID.DataObject_EmptyFormatNotAllowed)); } this._name = name; this._id = id; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties ////// Specifies the name of this format. /// This field is read-only. /// public string Name { get { return _name; } } ////// Specifies the Id number for this format. /// This field is read-only. /// public int Id { get { return _id; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // The registered clipboard format name string. readonly string _name; // The registered clipboard format id. readonly int _id; #endregion Private Fields } #endregion DataFormat Class } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Manage the data format. // // See spec at http://avalon/uis/Data%20Transfer%20clipboard%20dragdrop/Avalon%20Data%20Transfer%20Object.htm // // History: // 08/16/2002 : sangilj Created // //--------------------------------------------------------------------------- using MS.Internal.PresentationCore; namespace System.Windows { #region DataFormat Class ////// Represents a data format type. /// public sealed class DataFormat { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Initializes a new instance of the DataFormat class and specifies format name and id. /// public DataFormat(string name, int id) { if (name == null) { throw new ArgumentNullException("name"); } if (name == string.Empty) { throw new ArgumentException(SR.Get(SRID.DataObject_EmptyFormatNotAllowed)); } this._name = name; this._id = id; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- #region Public Properties ////// Specifies the name of this format. /// This field is read-only. /// public string Name { get { return _name; } } ////// Specifies the Id number for this format. /// This field is read-only. /// public int Id { get { return _id; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields // The registered clipboard format name string. readonly string _name; // The registered clipboard format id. readonly int _id; #endregion Private Fields } #endregion DataFormat Class } // 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
- ExclusiveHandle.cs
- AddInIpcChannel.cs
- View.cs
- WebScriptMetadataInstanceContextProvider.cs
- BoundingRectTracker.cs
- DockAndAnchorLayout.cs
- XmlAnyAttributeAttribute.cs
- _ConnectStream.cs
- WasHostedComPlusFactory.cs
- HtmlElementEventArgs.cs
- SqlBuilder.cs
- LocalClientSecuritySettingsElement.cs
- ProtectedConfigurationSection.cs
- WizardStepBase.cs
- PanningMessageFilter.cs
- SqlFunctions.cs
- HttpRequestTraceRecord.cs
- JavaScriptObjectDeserializer.cs
- TaskFileService.cs
- BamlMapTable.cs
- FileLogRecordEnumerator.cs
- DateTimeUtil.cs
- SqlVersion.cs
- DocumentXmlWriter.cs
- IntranetCredentialPolicy.cs
- PerformanceCounterPermissionEntryCollection.cs
- DelegateHelpers.cs
- CertificateManager.cs
- DefaultCommandConverter.cs
- ModelItemDictionaryImpl.cs
- BindingExpressionBase.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- AutoScrollHelper.cs
- _Win32.cs
- DataListDesigner.cs
- AnimationLayer.cs
- FlowNode.cs
- DataControlPagerLinkButton.cs
- DataGridViewTopRowAccessibleObject.cs
- ElementNotAvailableException.cs
- OciEnlistContext.cs
- Rotation3D.cs
- AsyncContentLoadedEventArgs.cs
- SqlComparer.cs
- AttachedPropertyInfo.cs
- NameTable.cs
- XsltSettings.cs
- dsa.cs
- EDesignUtil.cs
- NonceToken.cs
- PointConverter.cs
- WindowsStatusBar.cs
- ParentQuery.cs
- XmlDesignerDataSourceView.cs
- Hash.cs
- CorePropertiesFilter.cs
- StaticExtension.cs
- DiagnosticsConfiguration.cs
- WorkflowApplicationEventArgs.cs
- ViewEventArgs.cs
- ADRoleFactoryConfiguration.cs
- SafeThreadHandle.cs
- OletxEnlistment.cs
- XsltArgumentList.cs
- AlternateView.cs
- ArithmeticException.cs
- QilReplaceVisitor.cs
- OutputCacheProviderCollection.cs
- ClosableStream.cs
- AvTrace.cs
- XmlDomTextWriter.cs
- _AutoWebProxyScriptEngine.cs
- Int32RectConverter.cs
- TrackingProfile.cs
- Oid.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- QuaternionValueSerializer.cs
- SQLDateTime.cs
- IndexerNameAttribute.cs
- FlowDocumentPageViewerAutomationPeer.cs
- TaskFileService.cs
- TypeLibraryHelper.cs
- HttpAsyncResult.cs
- ExceptQueryOperator.cs
- CqlQuery.cs
- NotificationContext.cs
- ScrollData.cs
- HideDisabledControlAdapter.cs
- FileSystemEventArgs.cs
- ActivityExecutionFilter.cs
- DockProviderWrapper.cs
- ColorIndependentAnimationStorage.cs
- SqlTransaction.cs
- RestHandler.cs
- CommentEmitter.cs
- FieldTemplateUserControl.cs
- Journaling.cs
- ComponentRenameEvent.cs
- BitStream.cs
- TableRowGroupCollection.cs