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
- CodeCompileUnit.cs
- GridViewSortEventArgs.cs
- RequiredFieldValidator.cs
- GridItemCollection.cs
- MulticastIPAddressInformationCollection.cs
- CatalogPartChrome.cs
- AppDomainAttributes.cs
- JsonEnumDataContract.cs
- AgileSafeNativeMemoryHandle.cs
- PrintController.cs
- RelationshipConstraintValidator.cs
- MetaForeignKeyColumn.cs
- CatalogPartCollection.cs
- sortedlist.cs
- EdmToObjectNamespaceMap.cs
- PropertyGridEditorPart.cs
- LambdaCompiler.Generated.cs
- QueryCacheKey.cs
- SystemWebCachingSectionGroup.cs
- RowUpdatedEventArgs.cs
- FamilyCollection.cs
- OutputScopeManager.cs
- RelatedView.cs
- WpfPayload.cs
- PropertyChangeTracker.cs
- SchemaImporterExtensionsSection.cs
- FilterableAttribute.cs
- DbModificationClause.cs
- RsaKeyGen.cs
- HostUtils.cs
- filewebrequest.cs
- GenerateTemporaryTargetAssembly.cs
- SafeArchiveContext.cs
- ProfileInfo.cs
- CodeTypeConstructor.cs
- ContentElementCollection.cs
- LoadWorkflowCommand.cs
- PageThemeBuildProvider.cs
- MimeTypeMapper.cs
- MarshalByValueComponent.cs
- PingOptions.cs
- XamlDesignerSerializationManager.cs
- StrokeCollectionDefaultValueFactory.cs
- ComponentRenameEvent.cs
- Win32KeyboardDevice.cs
- FormParameter.cs
- ConsoleEntryPoint.cs
- XmlConverter.cs
- DocumentPaginator.cs
- PageSettings.cs
- TCEAdapterGenerator.cs
- SymbolDocumentGenerator.cs
- AlternateViewCollection.cs
- Timer.cs
- Scene3D.cs
- DbConnectionInternal.cs
- GraphicsPath.cs
- SmtpNetworkElement.cs
- HelpEvent.cs
- ValueSerializer.cs
- SqlParameter.cs
- ServiceDiscoveryBehavior.cs
- WeakKeyDictionary.cs
- ActivationArguments.cs
- DataFieldConverter.cs
- ObjectListCommandCollection.cs
- ObjectStateManager.cs
- Highlights.cs
- KnownTypesHelper.cs
- ProviderIncompatibleException.cs
- MailBnfHelper.cs
- MessageQueueConverter.cs
- TextTreePropertyUndoUnit.cs
- Package.cs
- LOSFormatter.cs
- FormsAuthenticationUser.cs
- DropSource.cs
- PeerCustomResolverBindingElement.cs
- MultiAsyncResult.cs
- LogFlushAsyncResult.cs
- MD5CryptoServiceProvider.cs
- XPathExpr.cs
- FixUp.cs
- PrivilegeNotHeldException.cs
- Int32KeyFrameCollection.cs
- SymbolPair.cs
- NameObjectCollectionBase.cs
- CounterCreationDataCollection.cs
- Inflater.cs
- InputLangChangeRequestEvent.cs
- RegexNode.cs
- SiteMembershipCondition.cs
- Brush.cs
- ProviderConnectionPoint.cs
- FileLevelControlBuilderAttribute.cs
- WizardStepBase.cs
- DetailsViewRow.cs
- CheckBoxBaseAdapter.cs
- RegexInterpreter.cs
- StatusBarDesigner.cs