Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- ClockGroup.cs
- Registry.cs
- MemoryMappedFileSecurity.cs
- TileBrush.cs
- DesignerListAdapter.cs
- SystemEvents.cs
- ProtocolInformationReader.cs
- MissingFieldException.cs
- Literal.cs
- SmiEventSink_Default.cs
- SQLBinaryStorage.cs
- RemoteWebConfigurationHostStream.cs
- StreamUpdate.cs
- mansign.cs
- GcSettings.cs
- NonParentingControl.cs
- LineUtil.cs
- DiagnosticTraceSource.cs
- StateInitializationDesigner.cs
- DbConnectionPoolOptions.cs
- ActivitySurrogate.cs
- InternalDuplexChannelFactory.cs
- Timer.cs
- Image.cs
- Operator.cs
- LocalsItemDescription.cs
- COM2ComponentEditor.cs
- QuaternionConverter.cs
- SolidColorBrush.cs
- ConsoleCancelEventArgs.cs
- ReadOnlyCollectionBase.cs
- SqlWorkflowInstanceStore.cs
- CodeAccessPermission.cs
- ResXResourceWriter.cs
- RegionData.cs
- ConfigurationPropertyAttribute.cs
- PackageRelationship.cs
- WebServiceClientProxyGenerator.cs
- SafeBuffer.cs
- TableRow.cs
- BypassElement.cs
- ObjectTypeMapping.cs
- TableLayoutPanelCellPosition.cs
- CatalogPart.cs
- PartManifestEntry.cs
- TagPrefixCollection.cs
- Random.cs
- AppDomainManager.cs
- WinCategoryAttribute.cs
- TableLayoutPanel.cs
- FrameworkReadOnlyPropertyMetadata.cs
- Context.cs
- CLRBindingWorker.cs
- QueryContinueDragEventArgs.cs
- GeneratedCodeAttribute.cs
- PersonalizationStateInfoCollection.cs
- OleDbInfoMessageEvent.cs
- controlskin.cs
- CodeDirectoryCompiler.cs
- SHA256Cng.cs
- ReferencedAssembly.cs
- COM2PropertyPageUITypeConverter.cs
- PermissionToken.cs
- WebPartsSection.cs
- StringComparer.cs
- altserialization.cs
- PropertyGridDesigner.cs
- CompositeFontParser.cs
- ReaderWriterLock.cs
- SmtpFailedRecipientException.cs
- BitmapFrame.cs
- SchemaImporter.cs
- XmlSchemaSimpleContentExtension.cs
- UInt16Storage.cs
- DocumentViewerBaseAutomationPeer.cs
- DiscreteKeyFrames.cs
- SqlBuilder.cs
- XmlComplianceUtil.cs
- EntityUtil.cs
- SocketException.cs
- SqlProfileProvider.cs
- OracleTransaction.cs
- TextBox.cs
- MappedMetaModel.cs
- ParameterElement.cs
- TableSectionStyle.cs
- DateTimeConstantAttribute.cs
- ReferenceList.cs
- PolyQuadraticBezierSegment.cs
- TypeForwardedToAttribute.cs
- PropertyGridCommands.cs
- DropDownHolder.cs
- DataSourceGeneratorException.cs
- PersonalizationProviderCollection.cs
- GridViewEditEventArgs.cs
- DeadCharTextComposition.cs
- SecurityContextCookieSerializer.cs
- AssemblyAssociatedContentFileAttribute.cs
- MatrixAnimationBase.cs
- PrivilegedConfigurationManager.cs