Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / DataFormat.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableItemStyle.cs
- CalendarAutoFormatDialog.cs
- Buffer.cs
- ResourceBinder.cs
- dataprotectionpermission.cs
- Metafile.cs
- MultipleViewProviderWrapper.cs
- HtmlInputCheckBox.cs
- MimeReturn.cs
- ModuleBuilderData.cs
- VisualBrush.cs
- contentDescriptor.cs
- DesignerEditorPartChrome.cs
- BaseParser.cs
- NumericUpDownAccelerationCollection.cs
- PolyLineSegment.cs
- MonthCalendar.cs
- DataGridTableCollection.cs
- CommandID.cs
- x509utils.cs
- Rfc4050KeyFormatter.cs
- WebPageTraceListener.cs
- MetadataItemSerializer.cs
- MultiViewDesigner.cs
- TableLayoutStyle.cs
- GridView.cs
- HttpCookie.cs
- DocumentViewerBase.cs
- ToolStripTextBox.cs
- DifferencingCollection.cs
- UnmanagedMemoryAccessor.cs
- ResXResourceWriter.cs
- MonthChangedEventArgs.cs
- MatrixKeyFrameCollection.cs
- SplitterEvent.cs
- PagerSettings.cs
- DetailsViewDeletedEventArgs.cs
- VerticalAlignConverter.cs
- DataErrorValidationRule.cs
- GatewayDefinition.cs
- DownloadProgressEventArgs.cs
- NumberFunctions.cs
- TransformerTypeCollection.cs
- BindingMemberInfo.cs
- DataColumnChangeEvent.cs
- XsdCachingReader.cs
- RemotingConfiguration.cs
- CompModSwitches.cs
- Debugger.cs
- AspProxy.cs
- ListComponentEditor.cs
- XpsDocumentEvent.cs
- Zone.cs
- MobileControlPersister.cs
- OleDbMetaDataFactory.cs
- SerialErrors.cs
- SizeAnimationClockResource.cs
- SqlDataReaderSmi.cs
- BypassElement.cs
- ResourceDictionaryCollection.cs
- MediaElementAutomationPeer.cs
- NetworkInformationException.cs
- XmlSerializerImportOptions.cs
- ExtractorMetadata.cs
- ToolStripContainerDesigner.cs
- SHA1Managed.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ColumnMapProcessor.cs
- securitycriticaldataformultiplegetandset.cs
- DbConnectionInternal.cs
- SqlPersonalizationProvider.cs
- XmlSchemaSequence.cs
- SqlSelectStatement.cs
- AuthorizationRuleCollection.cs
- NotConverter.cs
- RoleGroup.cs
- ConfigurationPropertyCollection.cs
- MD5Cng.cs
- RemoteWebConfigurationHostServer.cs
- ConnectionsZone.cs
- QuarticEase.cs
- WindowCollection.cs
- CustomErrorCollection.cs
- LoadMessageLogger.cs
- ElementHostAutomationPeer.cs
- WindowsProgressbar.cs
- GenericRootAutomationPeer.cs
- SmiEventStream.cs
- EmptyControlCollection.cs
- DataServiceClientException.cs
- ListBoxItemAutomationPeer.cs
- HMACSHA256.cs
- TransactionBridgeSection.cs
- DataGridRelationshipRow.cs
- SQLInt32.cs
- ProxySimple.cs
- _FtpControlStream.cs
- ConfigurationManagerHelper.cs
- ResourceType.cs
- SecurityChannelFactory.cs