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
- TreeNodeCollectionEditor.cs
- DataGridViewComboBoxEditingControl.cs
- SerializationEventsCache.cs
- BasicBrowserDialog.cs
- GeneralTransform3DGroup.cs
- ThicknessAnimationBase.cs
- EditorPartChrome.cs
- StateDesigner.TransitionInfo.cs
- SortFieldComparer.cs
- StrokeDescriptor.cs
- CodeIdentifier.cs
- StringBuilder.cs
- Polygon.cs
- Number.cs
- NavigationEventArgs.cs
- WebPartsPersonalizationAuthorization.cs
- PrivateFontCollection.cs
- CallTemplateAction.cs
- basecomparevalidator.cs
- RepeaterCommandEventArgs.cs
- ImportRequest.cs
- PropagatorResult.cs
- SystemColors.cs
- TextRangeProviderWrapper.cs
- FactoryGenerator.cs
- SamlSecurityTokenAuthenticator.cs
- SupportedAddressingMode.cs
- EventListenerClientSide.cs
- SecurityException.cs
- RegistryDataKey.cs
- GPRECT.cs
- DBSchemaRow.cs
- ContextMenuStripGroupCollection.cs
- WrappedOptions.cs
- CategoriesDocumentFormatter.cs
- FormatterServices.cs
- ReflectPropertyDescriptor.cs
- PathFigureCollection.cs
- DataGridViewCellValueEventArgs.cs
- DesignerToolboxInfo.cs
- DbDataSourceEnumerator.cs
- SrgsDocumentParser.cs
- PathFigure.cs
- SoapSchemaImporter.cs
- ReadWriteSpinLock.cs
- SynchronizedPool.cs
- EntityDataSourceDesigner.cs
- OleDbRowUpdatingEvent.cs
- StylusPoint.cs
- ProtocolElementCollection.cs
- ConfigurationLocation.cs
- Binding.cs
- COM2ColorConverter.cs
- MultiByteCodec.cs
- DataGridViewImageColumn.cs
- WebConfigurationHostFileChange.cs
- XmlSerializerNamespaces.cs
- CorrelationTokenTypeConvertor.cs
- ExtendedPropertyDescriptor.cs
- BitmapFrame.cs
- Matrix3D.cs
- SystemDropShadowChrome.cs
- MDIClient.cs
- GenericAuthenticationEventArgs.cs
- EffectiveValueEntry.cs
- TextModifierScope.cs
- ScrollItemPattern.cs
- Light.cs
- HebrewNumber.cs
- Variable.cs
- UrlPath.cs
- ComponentResourceManager.cs
- WebAdminConfigurationHelper.cs
- HybridCollection.cs
- StreamGeometry.cs
- EntitySqlException.cs
- Line.cs
- StorageAssociationTypeMapping.cs
- CheckBox.cs
- ProcessThreadCollection.cs
- RegexGroup.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- PerfService.cs
- ToolStripContentPanelRenderEventArgs.cs
- HMAC.cs
- DateTimeConstantAttribute.cs
- PreloadedPackages.cs
- TemplateFactory.cs
- GenericsInstances.cs
- Grid.cs
- LoginUtil.cs
- Int16AnimationBase.cs
- NameValuePermission.cs
- SqlDataSourceCommandEventArgs.cs
- ListControl.cs
- NavigationPropertyEmitter.cs
- PrinterSettings.cs
- SchemaRegistration.cs
- OleDbDataAdapter.cs
- SqlUDTStorage.cs