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
- GridViewColumnHeaderAutomationPeer.cs
- AssertUtility.cs
- AutomationProperty.cs
- HashMembershipCondition.cs
- ConnectionStringsExpressionEditor.cs
- ExceptionUtil.cs
- TagPrefixInfo.cs
- OracleLob.cs
- XmlBindingWorker.cs
- InternalMappingException.cs
- AssociativeAggregationOperator.cs
- Pair.cs
- ClipboardProcessor.cs
- SqlUserDefinedAggregateAttribute.cs
- SystemIcons.cs
- BamlResourceSerializer.cs
- DebugInfoExpression.cs
- WebSysDefaultValueAttribute.cs
- SslStream.cs
- RegexCompiler.cs
- MetadataSource.cs
- KeyTime.cs
- IndexedString.cs
- ExpressionTable.cs
- AnimationLayer.cs
- CaseStatementSlot.cs
- PageBreakRecord.cs
- ClientTargetCollection.cs
- SmtpReplyReaderFactory.cs
- DetailsView.cs
- ProfileSettings.cs
- _SafeNetHandles.cs
- ObjectView.cs
- KnownTypeAttribute.cs
- XmlWrappingReader.cs
- SimpleWebHandlerParser.cs
- _IPv6Address.cs
- TemplateControlParser.cs
- AnimationStorage.cs
- _UncName.cs
- SymLanguageType.cs
- GZipStream.cs
- ServiceModelSectionGroup.cs
- JsonByteArrayDataContract.cs
- MultiView.cs
- DataSourceHelper.cs
- ThreadStateException.cs
- XslCompiledTransform.cs
- FileDialog.cs
- EnumUnknown.cs
- HttpRuntime.cs
- EllipticalNodeOperations.cs
- SrgsGrammar.cs
- BinaryObjectWriter.cs
- PublisherMembershipCondition.cs
- SmiXetterAccessMap.cs
- DependencyObjectProvider.cs
- RectAnimationBase.cs
- MimeTypeMapper.cs
- TypeConvertions.cs
- LineGeometry.cs
- FileUpload.cs
- CounterSample.cs
- InstrumentationTracker.cs
- WebServiceResponse.cs
- DynamicRendererThreadManager.cs
- ToolStripGrip.cs
- ValidatorUtils.cs
- Number.cs
- StringResourceManager.cs
- Button.cs
- KeyboardNavigation.cs
- InputScope.cs
- WebPartConnectVerb.cs
- SEHException.cs
- CustomAttributeSerializer.cs
- ResourceExpression.cs
- WindowCollection.cs
- GridViewActionList.cs
- ListViewDeletedEventArgs.cs
- ScriptManager.cs
- DataRecord.cs
- _HTTPDateParse.cs
- SystemBrushes.cs
- SizeAnimationUsingKeyFrames.cs
- WindowsFormsLinkLabel.cs
- ContextMenuStrip.cs
- _Events.cs
- HwndMouseInputProvider.cs
- SecurityContext.cs
- ToolStripHighContrastRenderer.cs
- RecoverInstanceLocksCommand.cs
- CreateUserWizard.cs
- GenericTypeParameterBuilder.cs
- CDSCollectionETWBCLProvider.cs
- RegistryKey.cs
- SyndicationCategory.cs
- SqlCacheDependencyDatabaseCollection.cs
- GeometryDrawing.cs
- UrlMappingsModule.cs