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
- Popup.cs
- DataGridViewRowsRemovedEventArgs.cs
- AssemblyName.cs
- Point3DIndependentAnimationStorage.cs
- ListBindableAttribute.cs
- XmlSchemaSubstitutionGroup.cs
- Point3DAnimation.cs
- UnsafeNativeMethods.cs
- XmlParserContext.cs
- StateRuntime.cs
- Int64AnimationBase.cs
- BamlTreeMap.cs
- IssuanceLicense.cs
- TextPenaltyModule.cs
- PostBackOptions.cs
- ProjectionPruner.cs
- DataListCommandEventArgs.cs
- LineSegment.cs
- CodeDOMProvider.cs
- ParentQuery.cs
- RtfControls.cs
- XmlAnyElementAttributes.cs
- CustomError.cs
- UriExt.cs
- HMACSHA1.cs
- Converter.cs
- DatatypeImplementation.cs
- TextPointer.cs
- TileBrush.cs
- WorkflowEnvironment.cs
- Int16Storage.cs
- WriteTimeStream.cs
- ToolboxDataAttribute.cs
- SecurityRuntime.cs
- ResourceManagerWrapper.cs
- Crc32.cs
- cryptoapiTransform.cs
- WaitForChangedResult.cs
- XmlDataDocument.cs
- UrlMappingsModule.cs
- SynchronizedDispatch.cs
- NameTable.cs
- ConfigurationStrings.cs
- DetailsViewModeEventArgs.cs
- TableRowGroup.cs
- MarkupWriter.cs
- CodeIdentifier.cs
- ProcessStartInfo.cs
- StringStorage.cs
- PointAnimationBase.cs
- CanonicalizationDriver.cs
- HttpHandlerActionCollection.cs
- ArrayWithOffset.cs
- StorageAssociationTypeMapping.cs
- HWStack.cs
- SiteMapNode.cs
- QueryOutputWriter.cs
- ItemCheckEvent.cs
- WeakRefEnumerator.cs
- ColumnMapVisitor.cs
- ContentPlaceHolder.cs
- XmlTextAttribute.cs
- TableLayoutRowStyleCollection.cs
- DataBoundControl.cs
- Attributes.cs
- PropertyCollection.cs
- Point3DConverter.cs
- BufferAllocator.cs
- TextTreeExtractElementUndoUnit.cs
- HttpDictionary.cs
- FilterElement.cs
- FacetValueContainer.cs
- webproxy.cs
- MaskDesignerDialog.cs
- TextContainerHelper.cs
- X509Certificate2Collection.cs
- CodeGenerationManager.cs
- BitmapVisualManager.cs
- AuthenticationException.cs
- PeerCollaborationPermission.cs
- UserPersonalizationStateInfo.cs
- Atom10FormatterFactory.cs
- DesignerActionTextItem.cs
- Type.cs
- localization.cs
- GridViewItemAutomationPeer.cs
- AttributeCollection.cs
- MgmtResManager.cs
- URIFormatException.cs
- Rotation3DAnimationBase.cs
- ProfileEventArgs.cs
- UIElementParaClient.cs
- TaiwanLunisolarCalendar.cs
- ResourcePermissionBaseEntry.cs
- TransformerConfigurationWizardBase.cs
- SQLChars.cs
- BeginGetFileNameFromUserRequest.cs
- DataGridLength.cs
- SafeFreeMibTable.cs
- QuaternionConverter.cs