Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / DataFormat.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DefaultValueAttribute.cs
- NullRuntimeConfig.cs
- LongTypeConverter.cs
- RegisteredHiddenField.cs
- Stylesheet.cs
- complextypematerializer.cs
- ReachPageContentSerializerAsync.cs
- Facet.cs
- basenumberconverter.cs
- ExpressionBuilderContext.cs
- SqlGenerator.cs
- BoolExpressionVisitors.cs
- PathTooLongException.cs
- BinHexDecoder.cs
- X509WindowsSecurityToken.cs
- SystemWebCachingSectionGroup.cs
- TextRunCache.cs
- BamlLocalizabilityResolver.cs
- EntityDataSourceWizardForm.cs
- StyleSheetComponentEditor.cs
- FrameworkElementFactory.cs
- FrameAutomationPeer.cs
- DataGridViewRowStateChangedEventArgs.cs
- Base64Encoder.cs
- SqlCacheDependency.cs
- DataViewSettingCollection.cs
- ImportFileRequest.cs
- TypeDescriptor.cs
- BitmapVisualManager.cs
- HtmlTable.cs
- XsltLibrary.cs
- NotificationContext.cs
- Grant.cs
- HtmlTable.cs
- DesignerDataView.cs
- BinaryNode.cs
- SaveRecipientRequest.cs
- GeneralTransformGroup.cs
- WpfSharedBamlSchemaContext.cs
- DependencyPropertyConverter.cs
- Int64KeyFrameCollection.cs
- HtmlElement.cs
- ValidatorAttribute.cs
- DataSourceCacheDurationConverter.cs
- DataSetUtil.cs
- ViewManager.cs
- XmlSchemaAttribute.cs
- CodeStatementCollection.cs
- AssociationTypeEmitter.cs
- XmlAggregates.cs
- RenderTargetBitmap.cs
- SplashScreen.cs
- FileSystemInfo.cs
- TableParagraph.cs
- CalendarAutoFormat.cs
- ToolboxDataAttribute.cs
- WSSecurityTokenSerializer.cs
- SqlBinder.cs
- PersonalizationProviderHelper.cs
- LoadedEvent.cs
- recordstate.cs
- MultiSelector.cs
- BridgeDataRecord.cs
- OleDbRowUpdatedEvent.cs
- PartialCachingControl.cs
- XmlLangPropertyAttribute.cs
- CalendarDataBindingHandler.cs
- EnumValAlphaComparer.cs
- PeerNodeAddress.cs
- DataRelation.cs
- ContextQuery.cs
- SamlAssertion.cs
- JsonReaderWriterFactory.cs
- AttachmentCollection.cs
- HtmlTableRow.cs
- RegexStringValidatorAttribute.cs
- XslNumber.cs
- XmlArrayItemAttribute.cs
- _HeaderInfoTable.cs
- Timeline.cs
- HwndSourceParameters.cs
- ImportContext.cs
- TiffBitmapDecoder.cs
- ToolboxCategory.cs
- MediaEntryAttribute.cs
- PairComparer.cs
- HybridDictionary.cs
- WebHeaderCollection.cs
- InkPresenterAutomationPeer.cs
- ProtectedConfiguration.cs
- NavigationWindow.cs
- OleStrCAMarshaler.cs
- MatrixStack.cs
- DataGridViewLayoutData.cs
- RegexMatch.cs
- XpsS0ValidatingLoader.cs
- WebPartTracker.cs
- ZipIOCentralDirectoryFileHeader.cs
- SqlDataSourceStatusEventArgs.cs
- CharacterMetricsDictionary.cs