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
- cookiecollection.cs
- SchemeSettingElement.cs
- XmlSchemaSimpleType.cs
- SafeRightsManagementPubHandle.cs
- SymmetricKeyWrap.cs
- PngBitmapDecoder.cs
- VisualTreeUtils.cs
- DataChangedEventManager.cs
- Keywords.cs
- PageOrientation.cs
- FormsAuthenticationUser.cs
- EndEvent.cs
- Parameter.cs
- HGlobalSafeHandle.cs
- PaperSize.cs
- HttpModuleCollection.cs
- ServerIdentity.cs
- NavigatingCancelEventArgs.cs
- SchemaName.cs
- ManipulationDelta.cs
- RoleManagerModule.cs
- ThicknessConverter.cs
- StyleXamlTreeBuilder.cs
- StateElement.cs
- KernelTypeValidation.cs
- VoiceObjectToken.cs
- EventlogProvider.cs
- BindingNavigatorDesigner.cs
- DbConnectionPoolCounters.cs
- LinkConverter.cs
- TabControlEvent.cs
- DocumentXPathNavigator.cs
- SoapIncludeAttribute.cs
- metadatamappinghashervisitor.cs
- VersionedStream.cs
- PkcsUtils.cs
- PostBackTrigger.cs
- ExpressionBuilderContext.cs
- DataGridColumnHeadersPresenter.cs
- TrackingStringDictionary.cs
- TabControl.cs
- BaseDataList.cs
- HtmlTableCellCollection.cs
- ObjectConverter.cs
- IpcManager.cs
- ExceptionHelpers.cs
- followingquery.cs
- WinFormsUtils.cs
- UnauthorizedWebPart.cs
- XPathAncestorIterator.cs
- HtmlSelect.cs
- HyperLinkStyle.cs
- DataGridAddNewRow.cs
- XmlDocumentFragment.cs
- SiteMapHierarchicalDataSourceView.cs
- ContentElementCollection.cs
- OutputCacheProfileCollection.cs
- RequestUriProcessor.cs
- BasicExpandProvider.cs
- Thickness.cs
- ItemCollection.cs
- Rect3DConverter.cs
- DataDocumentXPathNavigator.cs
- RequestQueryProcessor.cs
- KeyConverter.cs
- ByteStorage.cs
- GradientStop.cs
- FormViewDeleteEventArgs.cs
- SQLDateTime.cs
- ImageListStreamer.cs
- CLSCompliantAttribute.cs
- StatusBarPanelClickEvent.cs
- WeakReferenceEnumerator.cs
- CatalogZone.cs
- COM2ComponentEditor.cs
- TextBox.cs
- ClipboardData.cs
- SurrogateSelector.cs
- CheckPair.cs
- SrgsElement.cs
- Method.cs
- MessageHeader.cs
- X500Name.cs
- ConfigXmlElement.cs
- MailWebEventProvider.cs
- SqlDataSourceCache.cs
- SoapSchemaExporter.cs
- VarInfo.cs
- LogRecordSequence.cs
- XmlSchemaComplexContentRestriction.cs
- UrlAuthFailureHandler.cs
- DynamicValueConverter.cs
- EntryWrittenEventArgs.cs
- CqlErrorHelper.cs
- AnnotationDocumentPaginator.cs
- DependencyPropertyKind.cs
- CacheOutputQuery.cs
- ResetableIterator.cs
- SimpleType.cs
- MatcherBuilder.cs