Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DBSqlParserTableCollection.cs
- ProtocolProfile.cs
- Renderer.cs
- FileDetails.cs
- AnnotationAdorner.cs
- DataGridViewMethods.cs
- _ContextAwareResult.cs
- GeometryGroup.cs
- MultipartIdentifier.cs
- ColorBuilder.cs
- DateTimeFormatInfo.cs
- SqlError.cs
- IsolatedStorage.cs
- BooleanConverter.cs
- TextLine.cs
- Decoder.cs
- BindingValueChangedEventArgs.cs
- BinarySecretSecurityToken.cs
- LogManagementAsyncResult.cs
- CodeStatement.cs
- ContainerUtilities.cs
- IndividualDeviceConfig.cs
- PathFigureCollection.cs
- OracleParameterCollection.cs
- Model3DGroup.cs
- SystemIPInterfaceStatistics.cs
- X509CertificateValidator.cs
- CommonObjectSecurity.cs
- OptimizedTemplateContentHelper.cs
- WinFormsSecurity.cs
- CustomValidator.cs
- PromptEventArgs.cs
- SoapInteropTypes.cs
- BufferAllocator.cs
- TagMapInfo.cs
- OracleCommandBuilder.cs
- dataprotectionpermissionattribute.cs
- FrameworkRichTextComposition.cs
- ShimAsPublicXamlType.cs
- WindowsRichEdit.cs
- AsyncOperation.cs
- SystemIcmpV4Statistics.cs
- InternalRelationshipCollection.cs
- MouseButtonEventArgs.cs
- WeakReferenceEnumerator.cs
- SynchronizedDisposablePool.cs
- WinEventQueueItem.cs
- CqlIdentifiers.cs
- XmlTextAttribute.cs
- ScriptRef.cs
- BuildResult.cs
- IndicShape.cs
- ClassDataContract.cs
- RightsManagementEncryptedStream.cs
- SelectionProcessor.cs
- TableParaClient.cs
- StylusButton.cs
- DesignerLoader.cs
- ItemCheckEvent.cs
- WebBrowsableAttribute.cs
- DiagnosticsConfiguration.cs
- BitmapEffectGeneralTransform.cs
- Substitution.cs
- ToolStripSeparatorRenderEventArgs.cs
- DocumentPageHost.cs
- LocatorBase.cs
- ExtendedPropertyCollection.cs
- NumberAction.cs
- ControlBuilderAttribute.cs
- ExpandableObjectConverter.cs
- InvalidDataException.cs
- ToolboxDataAttribute.cs
- Function.cs
- VectorCollectionConverter.cs
- XPathBinder.cs
- C14NUtil.cs
- Executor.cs
- sortedlist.cs
- CorrelationManager.cs
- Route.cs
- TraceContext.cs
- IssuanceLicense.cs
- KeyValueConfigurationElement.cs
- DataGridViewRowPrePaintEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- SEHException.cs
- HierarchicalDataTemplate.cs
- UIElementHelper.cs
- XmlCompatibilityReader.cs
- CodeArrayIndexerExpression.cs
- DataGridViewColumnConverter.cs
- ImageAutomationPeer.cs
- NamedElement.cs
- RandomNumberGenerator.cs
- XhtmlBasicImageAdapter.cs
- KeyBinding.cs
- ResXDataNode.cs
- SslStream.cs
- ProcessHostMapPath.cs
- GroupStyle.cs