Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DataControlField.cs
- BitmapSource.cs
- XmlILModule.cs
- Vector3DAnimationBase.cs
- Underline.cs
- fixedPageContentExtractor.cs
- RelationshipNavigation.cs
- HighlightVisual.cs
- SID.cs
- DashStyle.cs
- XmlSchemaInferenceException.cs
- NativeMethods.cs
- FormatSettings.cs
- TrustLevel.cs
- PageRouteHandler.cs
- DbParameterCollectionHelper.cs
- TraceContextRecord.cs
- DiscoveryEndpointElement.cs
- ContentValidator.cs
- MapPathBasedVirtualPathProvider.cs
- ResXBuildProvider.cs
- PkcsMisc.cs
- TextTreeRootTextBlock.cs
- DCSafeHandle.cs
- LinkButton.cs
- _ProxyChain.cs
- IntMinMaxAggregationOperator.cs
- TemplateBindingExpression.cs
- SqlProviderServices.cs
- AdornedElementPlaceholder.cs
- EventLogWatcher.cs
- NullableLongAverageAggregationOperator.cs
- Timeline.cs
- SrgsElementList.cs
- DifferencingCollection.cs
- MissingSatelliteAssemblyException.cs
- Lease.cs
- RotationValidation.cs
- OleDbRowUpdatingEvent.cs
- CodeSnippetCompileUnit.cs
- Oci.cs
- TypedReference.cs
- Stopwatch.cs
- ObservableCollection.cs
- ProjectionPlanCompiler.cs
- SmiConnection.cs
- SequentialUshortCollection.cs
- SqlInfoMessageEvent.cs
- EntityTypeEmitter.cs
- SqlConnectionPoolProviderInfo.cs
- FileAuthorizationModule.cs
- _SSPIWrapper.cs
- ContextStaticAttribute.cs
- CommandBinding.cs
- ConnectionPointGlyph.cs
- ByteAnimationBase.cs
- ExpressionBinding.cs
- XomlCompilerResults.cs
- ProfileService.cs
- cache.cs
- DataTableExtensions.cs
- ClientScriptItem.cs
- TransformerConfigurationWizardBase.cs
- KeyToListMap.cs
- OnOperation.cs
- TextSpanModifier.cs
- PassportAuthenticationModule.cs
- UInt64Converter.cs
- GradientSpreadMethodValidation.cs
- AdjustableArrowCap.cs
- Storyboard.cs
- DataTableMappingCollection.cs
- RMPermissions.cs
- DisplayInformation.cs
- DiscoveryClientProtocol.cs
- FlowNode.cs
- WizardForm.cs
- TypeBuilder.cs
- TableProviderWrapper.cs
- PrintEvent.cs
- XPathChildIterator.cs
- COM2ComponentEditor.cs
- BuildProvider.cs
- UserMapPath.cs
- MinMaxParagraphWidth.cs
- Calendar.cs
- TransformerInfoCollection.cs
- SamlDoNotCacheCondition.cs
- DateTimeConverter2.cs
- GridViewColumnCollection.cs
- NotifyCollectionChangedEventArgs.cs
- SqlNotificationEventArgs.cs
- XmlHelper.cs
- DataFormats.cs
- GroupBoxDesigner.cs
- GridPatternIdentifiers.cs
- connectionpool.cs
- _CommandStream.cs
- CacheOutputQuery.cs
- WsdlBuildProvider.cs