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
- ProjectionQueryOptionExpression.cs
- ResourceReferenceExpression.cs
- IUnknownConstantAttribute.cs
- SoapFault.cs
- IndexerNameAttribute.cs
- Double.cs
- TabRenderer.cs
- IgnorePropertiesAttribute.cs
- RemoteWebConfigurationHostServer.cs
- EmptyStringExpandableObjectConverter.cs
- ConfigurationCollectionAttribute.cs
- XmlHierarchicalDataSourceView.cs
- CompiledXpathExpr.cs
- PolicyImporterElementCollection.cs
- SqlNotificationRequest.cs
- DataServiceClientException.cs
- ImageMapEventArgs.cs
- ProviderBase.cs
- WrapperEqualityComparer.cs
- HttpProfileGroupBase.cs
- ArcSegment.cs
- FreeFormDragDropManager.cs
- XmlRawWriter.cs
- ExpressionHelper.cs
- SizeConverter.cs
- DataSourceCache.cs
- InputScope.cs
- NativeMethodsCLR.cs
- ExpressionHelper.cs
- ConstNode.cs
- WorkflowApplicationCompletedEventArgs.cs
- SystemDropShadowChrome.cs
- ThreadAbortException.cs
- RtfControlWordInfo.cs
- DBCommand.cs
- RoutedEventArgs.cs
- CookielessData.cs
- NamedPipeHostedTransportConfiguration.cs
- PageThemeCodeDomTreeGenerator.cs
- HyperlinkAutomationPeer.cs
- UniqueEventHelper.cs
- _emptywebproxy.cs
- ImageBrush.cs
- EditorZoneBase.cs
- StringReader.cs
- XmlAnyElementAttribute.cs
- SerTrace.cs
- EntitySqlQueryCacheEntry.cs
- QueryStringParameter.cs
- UpdatableWrapper.cs
- DocumentSequenceHighlightLayer.cs
- CheckBox.cs
- XPathBuilder.cs
- KeyInfo.cs
- WebServiceMethodData.cs
- DataGridItem.cs
- SafeSerializationManager.cs
- AddInPipelineAttributes.cs
- Typography.cs
- ResourceDictionary.cs
- BindingRestrictions.cs
- LineGeometry.cs
- TcpClientSocketManager.cs
- ConsoleTraceListener.cs
- PrivilegeNotHeldException.cs
- FileEnumerator.cs
- Baml6ConstructorInfo.cs
- BaseTemplateParser.cs
- TrustLevel.cs
- ServiceBusyException.cs
- HelpProvider.cs
- ApplicationFileCodeDomTreeGenerator.cs
- StringFormat.cs
- ReflectionHelper.cs
- ObjectQueryState.cs
- columnmapfactory.cs
- Char.cs
- MulticastNotSupportedException.cs
- OdbcUtils.cs
- PerspectiveCamera.cs
- CodeTypeReferenceExpression.cs
- XmlIlTypeHelper.cs
- DbCommandDefinition.cs
- _NtlmClient.cs
- TransactionContextManager.cs
- StaticTextPointer.cs
- _NetRes.cs
- WebPartCatalogCloseVerb.cs
- ApplicationContext.cs
- TextCollapsingProperties.cs
- Cloud.cs
- AsyncResult.cs
- OLEDB_Util.cs
- SafePEFileHandle.cs
- MobileSysDescriptionAttribute.cs
- HostProtectionPermission.cs
- Renderer.cs
- SortedDictionary.cs
- unsafenativemethodstextservices.cs
- DataGridViewColumnEventArgs.cs