Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- QueryReaderSettings.cs
- CheckBoxFlatAdapter.cs
- ThreadExceptionDialog.cs
- DispatcherEventArgs.cs
- HashFinalRequest.cs
- RegularExpressionValidator.cs
- DataTablePropertyDescriptor.cs
- CornerRadiusConverter.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- AppSettingsExpressionBuilder.cs
- DiscoveryClient.cs
- ReliableOutputSessionChannel.cs
- FormsAuthenticationEventArgs.cs
- ScriptingSectionGroup.cs
- WindowsAuthenticationEventArgs.cs
- FixedDSBuilder.cs
- TableCell.cs
- WindowsAuthenticationEventArgs.cs
- MailAddress.cs
- CollectionChange.cs
- TypedRowGenerator.cs
- SqlTypesSchemaImporter.cs
- ListBindingConverter.cs
- ZipFileInfo.cs
- RawUIStateInputReport.cs
- BitArray.cs
- PointAnimationBase.cs
- XmlEntity.cs
- ObjectDataSourceEventArgs.cs
- InternalMappingException.cs
- DataGridItemEventArgs.cs
- MemoryMappedViewStream.cs
- SecurityElement.cs
- ViewStateModeByIdAttribute.cs
- Expression.cs
- DataGridViewSortCompareEventArgs.cs
- HttpWebRequest.cs
- ControlBuilderAttribute.cs
- BooleanAnimationBase.cs
- ThreadExceptionDialog.cs
- UnconditionalPolicy.cs
- PropertyItemInternal.cs
- WorkflowWebHostingModule.cs
- FormViewDesigner.cs
- MetabaseServerConfig.cs
- namescope.cs
- JsonFormatGeneratorStatics.cs
- HandleRef.cs
- SettingsAttributes.cs
- DispatcherExceptionFilterEventArgs.cs
- CompilerLocalReference.cs
- XPathBinder.cs
- XpsFilter.cs
- XmlParserContext.cs
- ReadOnlyHierarchicalDataSource.cs
- FontFamily.cs
- PagedDataSource.cs
- TableRow.cs
- CharEnumerator.cs
- ComponentEvent.cs
- AssemblySettingAttributes.cs
- MarshalByValueComponent.cs
- PropertyEmitterBase.cs
- LogicalTreeHelper.cs
- BaseTemplateParser.cs
- XmlSchemaSequence.cs
- TagPrefixAttribute.cs
- StylusSystemGestureEventArgs.cs
- CodeExporter.cs
- ExpressionHelper.cs
- OracleRowUpdatedEventArgs.cs
- HostedElements.cs
- WindowsComboBox.cs
- WebPartEditVerb.cs
- ClusterRegistryConfigurationProvider.cs
- FormattedTextSymbols.cs
- InteropBitmapSource.cs
- InternalTypeHelper.cs
- RotateTransform.cs
- ErrorHandler.cs
- Iis7Helper.cs
- HttpContextBase.cs
- IdleTimeoutMonitor.cs
- MimeFormatExtensions.cs
- CodePageUtils.cs
- Privilege.cs
- Matrix.cs
- Int32Storage.cs
- TextBox.cs
- FragmentQuery.cs
- ToolStripDropDownMenu.cs
- BinHexDecoder.cs
- TreeIterator.cs
- CompilationRelaxations.cs
- HtmlSelect.cs
- _NegotiateClient.cs
- InternalsVisibleToAttribute.cs
- XmlSerializationWriter.cs
- ConfigurationConverterBase.cs
- BooleanExpr.cs