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
- SqlClientWrapperSmiStream.cs
- TextProperties.cs
- UpdateRecord.cs
- DBConnectionString.cs
- DataGridViewLinkCell.cs
- DBParameter.cs
- BitmapFrameDecode.cs
- DetailsViewUpdateEventArgs.cs
- ColumnBinding.cs
- QueryAccessibilityHelpEvent.cs
- BooleanProjectedSlot.cs
- Rijndael.cs
- ItemsControl.cs
- BoolExpressionVisitors.cs
- SystemTcpConnection.cs
- ReliabilityContractAttribute.cs
- PreProcessor.cs
- Size.cs
- EventLogQuery.cs
- XmlSchemaNotation.cs
- ButtonPopupAdapter.cs
- AxHost.cs
- CollectionViewGroupInternal.cs
- _NTAuthentication.cs
- DataView.cs
- ReversePositionQuery.cs
- KeyGestureValueSerializer.cs
- Help.cs
- DBConnectionString.cs
- EmptyStringExpandableObjectConverter.cs
- HashHelper.cs
- ItemList.cs
- WorkflowDesignerMessageFilter.cs
- WebPartsPersonalizationAuthorization.cs
- NameTable.cs
- ButtonBase.cs
- WebZone.cs
- PersonalizationStateInfoCollection.cs
- ThreadAbortException.cs
- TreeView.cs
- Math.cs
- ping.cs
- IpcPort.cs
- TransformerInfo.cs
- PathGeometry.cs
- DataGridViewImageCell.cs
- GridViewRowEventArgs.cs
- PublishLicense.cs
- SurrogateSelector.cs
- XmlExceptionHelper.cs
- KeyNotFoundException.cs
- MSAANativeProvider.cs
- RectangleF.cs
- ComponentResourceKey.cs
- StrongNamePublicKeyBlob.cs
- TraceShell.cs
- UserControlCodeDomTreeGenerator.cs
- ContentOperations.cs
- ISCIIEncoding.cs
- ListViewTableRow.cs
- PrimitiveSchema.cs
- AssemblySettingAttributes.cs
- X509CertificateClaimSet.cs
- Matrix3D.cs
- StylusTouchDevice.cs
- ResolvePPIDRequest.cs
- PointAnimationUsingKeyFrames.cs
- WebResponse.cs
- StateManagedCollection.cs
- DataTemplateSelector.cs
- KeySpline.cs
- ConnectionInterfaceCollection.cs
- ExceptionUtil.cs
- HttpCacheVaryByContentEncodings.cs
- DefinitionUpdate.cs
- HandlerBase.cs
- FocusChangedEventArgs.cs
- LassoSelectionBehavior.cs
- SoapReflectionImporter.cs
- StreamGeometry.cs
- UniqueEventHelper.cs
- ThemeDirectoryCompiler.cs
- DbProviderManifest.cs
- Evidence.cs
- WebRequest.cs
- WebPartConnectionsConnectVerb.cs
- PageFunction.cs
- XmlC14NWriter.cs
- XPathDocument.cs
- NotifyParentPropertyAttribute.cs
- BufferModesCollection.cs
- Header.cs
- TraceListener.cs
- AdCreatedEventArgs.cs
- HtmlInputSubmit.cs
- SettingsPropertyValue.cs
- InheritanceAttribute.cs
- DataObjectEventArgs.cs
- ScriptHandlerFactory.cs
- TabletDeviceInfo.cs