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
- GenericIdentity.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- TextEditorDragDrop.cs
- ChildrenQuery.cs
- StylusPointDescription.cs
- Process.cs
- Lookup.cs
- EdmFunction.cs
- SortDescription.cs
- AtomMaterializerLog.cs
- EventToken.cs
- SuppressIldasmAttribute.cs
- _TimerThread.cs
- SurrogateEncoder.cs
- XPathDescendantIterator.cs
- StatusBarDrawItemEvent.cs
- PolicyStatement.cs
- CultureInfoConverter.cs
- EnumValAlphaComparer.cs
- Attribute.cs
- DataServiceExpressionVisitor.cs
- ListControlConvertEventArgs.cs
- FullTrustAssemblyCollection.cs
- WindowsAuthenticationEventArgs.cs
- EventRouteFactory.cs
- XmlSchema.cs
- DetailsViewDeletedEventArgs.cs
- CounterCreationData.cs
- OutputCacheSection.cs
- WebServiceEnumData.cs
- SystemTcpStatistics.cs
- EventMemberCodeDomSerializer.cs
- FrameworkElementFactory.cs
- XamlContextStack.cs
- QualifiedCellIdBoolean.cs
- Message.cs
- PasswordRecovery.cs
- DataBindingList.cs
- HtmlInputSubmit.cs
- ImageBrush.cs
- GregorianCalendarHelper.cs
- CodeMemberField.cs
- UnsafeNativeMethods.cs
- PatternMatcher.cs
- DefaultTextStore.cs
- PrintDialog.cs
- GridViewColumnHeaderAutomationPeer.cs
- TokenizerHelper.cs
- CqlLexer.cs
- ComponentChangedEvent.cs
- Point4DValueSerializer.cs
- SystemUnicastIPAddressInformation.cs
- RegionIterator.cs
- Tag.cs
- MobileFormsAuthentication.cs
- BrowserDefinitionCollection.cs
- RichTextBox.cs
- WindowsEditBox.cs
- HttpModuleCollection.cs
- ToolConsole.cs
- XmlKeywords.cs
- EventLogPermissionEntry.cs
- KnownBoxes.cs
- SecurityKeyType.cs
- SafeHandle.cs
- DockPatternIdentifiers.cs
- OleDbCommand.cs
- TypedRowGenerator.cs
- URLMembershipCondition.cs
- InternalUserCancelledException.cs
- BooleanProjectedSlot.cs
- Match.cs
- Transform.cs
- AutomationPatternInfo.cs
- Point4D.cs
- MemoryRecordBuffer.cs
- QilList.cs
- SecurityStateEncoder.cs
- StreamInfo.cs
- XmlEncoding.cs
- CodeParameterDeclarationExpressionCollection.cs
- PersonalizableAttribute.cs
- Solver.cs
- DynamicValueConverter.cs
- XmlSerializationGeneratedCode.cs
- connectionpool.cs
- DataGridPagerStyle.cs
- HtmlInputCheckBox.cs
- ForeignConstraint.cs
- FontInfo.cs
- XmlAttributeCollection.cs
- Site.cs
- TreeViewImageIndexConverter.cs
- OracleBoolean.cs
- ByteConverter.cs
- HeaderedItemsControl.cs
- GeneralTransform3DGroup.cs
- Literal.cs
- TypeExtension.cs
- OleDbConnectionPoolGroupProviderInfo.cs