Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TextTrailingCharacterEllipsis.cs
- ConfigurationSettings.cs
- GroupItem.cs
- ColorTranslator.cs
- CharacterBufferReference.cs
- ConfigurationLocationCollection.cs
- WebPartsSection.cs
- SharedMemory.cs
- ChannelSinkStacks.cs
- XmlTextReaderImplHelpers.cs
- Roles.cs
- ObjectCacheSettings.cs
- AutoResizedEvent.cs
- Maps.cs
- TypedDataSetSchemaImporterExtension.cs
- SQLUtility.cs
- LabelEditEvent.cs
- CommandDevice.cs
- FileDialogCustomPlace.cs
- DrawingContextDrawingContextWalker.cs
- RoleManagerSection.cs
- NGCSerializer.cs
- BulletedList.cs
- FormParameter.cs
- KeyInfo.cs
- FontFamilyValueSerializer.cs
- WebServiceFault.cs
- TimeSpanStorage.cs
- CancellationHandler.cs
- ColorBlend.cs
- ListViewSortEventArgs.cs
- Function.cs
- _LazyAsyncResult.cs
- IQueryable.cs
- AuthenticationException.cs
- ConfigsHelper.cs
- HtmlAnchor.cs
- MailWriter.cs
- CodeTypeReference.cs
- AutomationEventArgs.cs
- UseManagedPresentationElement.cs
- SpellCheck.cs
- PointKeyFrameCollection.cs
- NetworkCredential.cs
- TextServicesPropertyRanges.cs
- WindowsSlider.cs
- RegexCompilationInfo.cs
- Monitor.cs
- ConfigurationLoaderException.cs
- WpfSharedXamlSchemaContext.cs
- IFlowDocumentViewer.cs
- RuntimeIdentifierPropertyAttribute.cs
- EmbeddedMailObject.cs
- XPathNode.cs
- CompressEmulationStream.cs
- DbSourceParameterCollection.cs
- UnionCqlBlock.cs
- DataSourceSelectArguments.cs
- ThreadSafeList.cs
- CodeEntryPointMethod.cs
- Label.cs
- MailAddress.cs
- DesignConnection.cs
- FormViewModeEventArgs.cs
- DbProviderFactory.cs
- SimpleBitVector32.cs
- HTTPNotFoundHandler.cs
- BaseValidator.cs
- AuthenticationModuleElement.cs
- DataGridViewCellMouseEventArgs.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- XmlNodeReader.cs
- StorageSetMapping.cs
- RadioButton.cs
- Error.cs
- PropertiesTab.cs
- SettingsPropertyWrongTypeException.cs
- LineInfo.cs
- SolidColorBrush.cs
- NumberFunctions.cs
- ChtmlTextWriter.cs
- DisableDpiAwarenessAttribute.cs
- Run.cs
- NamedPipeAppDomainProtocolHandler.cs
- ServerTooBusyException.cs
- SiteMapDataSource.cs
- DesignerEditorPartChrome.cs
- ProviderCommandInfoUtils.cs
- ComponentResourceKey.cs
- FillRuleValidation.cs
- GeneralTransform3D.cs
- BitmapEffectInputConnector.cs
- ChtmlImageAdapter.cs
- BamlLocalizationDictionary.cs
- TdsParserStateObject.cs
- DataGridViewTopLeftHeaderCell.cs
- Metafile.cs
- MemoryRecordBuffer.cs
- WebPartConnectionsConnectVerb.cs
- TypefaceCollection.cs