Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / DataFormat.cs / 1 / DataFormat.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: Manage the data format. // // See spec at [....]/uis/Data%20Transfer%20clipboard%20dragdrop/Avalon%20Data%20Transfer%20Object.htm // // History: // 08/16/2002 : [....] 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
- ParameterReplacerVisitor.cs
- QualifiedId.cs
- AuthenticationException.cs
- PropertyTabAttribute.cs
- SoapInteropTypes.cs
- PageThemeCodeDomTreeGenerator.cs
- NamedPermissionSet.cs
- MenuItem.cs
- CalendarModeChangedEventArgs.cs
- XmlBufferReader.cs
- SettingsBindableAttribute.cs
- WmpBitmapDecoder.cs
- SessionParameter.cs
- DefaultAsyncDataDispatcher.cs
- ManifestSignedXml.cs
- QilBinary.cs
- GridViewCommandEventArgs.cs
- XamlTypeMapper.cs
- DesignerCategoryAttribute.cs
- CultureTableRecord.cs
- TemplatedWizardStep.cs
- BitmapSourceSafeMILHandle.cs
- HWStack.cs
- SHA512.cs
- FacetValues.cs
- GenerateTemporaryTargetAssembly.cs
- EventRoute.cs
- DescendantBaseQuery.cs
- ToolStripActionList.cs
- BorderGapMaskConverter.cs
- ObjectAssociationEndMapping.cs
- CipherData.cs
- SrgsToken.cs
- DataRelationCollection.cs
- DeclaredTypeValidator.cs
- SortDescriptionCollection.cs
- SmiMetaDataProperty.cs
- OdbcRowUpdatingEvent.cs
- IndicFontClient.cs
- SelectedDatesCollection.cs
- TreeNodeStyleCollection.cs
- HttpHeaderCollection.cs
- PlainXmlDeserializer.cs
- TableDetailsRow.cs
- TextTreeTextNode.cs
- LocalizeDesigner.cs
- ImpersonateTokenRef.cs
- AttachInfo.cs
- NegotiateStream.cs
- ImageSource.cs
- XmlnsDictionary.cs
- Verify.cs
- SoapServerProtocol.cs
- PersonalizationStateInfo.cs
- Effect.cs
- DataGridPageChangedEventArgs.cs
- CompilerError.cs
- QueryContinueDragEventArgs.cs
- PrintController.cs
- IntPtr.cs
- Range.cs
- SmtpCommands.cs
- Underline.cs
- TemplatedWizardStep.cs
- CodeMemberMethod.cs
- documentation.cs
- DataGridViewHitTestInfo.cs
- IApplicationTrustManager.cs
- XmlHierarchicalEnumerable.cs
- DataServiceProcessingPipelineEventArgs.cs
- CodePrimitiveExpression.cs
- AuthenticationModuleElementCollection.cs
- SecurityRuntime.cs
- SystemThemeKey.cs
- IDispatchConstantAttribute.cs
- GcHandle.cs
- LicFileLicenseProvider.cs
- SystemResources.cs
- Predicate.cs
- DependsOnAttribute.cs
- TemplateXamlParser.cs
- UIAgentInitializationException.cs
- DbConnectionPoolGroupProviderInfo.cs
- Site.cs
- SimplePropertyEntry.cs
- WindowsListView.cs
- DateTimeUtil.cs
- SelectionItemPattern.cs
- ToolStripItemRenderEventArgs.cs
- SqlRetyper.cs
- SoapInteropTypes.cs
- XamlNamespaceHelper.cs
- MappedMetaModel.cs
- CalendarDataBindingHandler.cs
- XpsPackagingException.cs
- DataServiceSaveChangesEventArgs.cs
- Vector.cs
- EDesignUtil.cs
- RegexInterpreter.cs
- MenuAutomationPeer.cs