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
- DoWorkEventArgs.cs
- ThicknessKeyFrameCollection.cs
- QuotaThrottle.cs
- ToolStripContentPanelDesigner.cs
- ToolboxDataAttribute.cs
- EditorZone.cs
- CollectionViewGroup.cs
- XmlSerializationReader.cs
- _AutoWebProxyScriptHelper.cs
- WebPartDisplayModeEventArgs.cs
- SQLInt16Storage.cs
- PropertyPathConverter.cs
- CodeCompileUnit.cs
- EventManager.cs
- EntityDataSource.cs
- Unit.cs
- TraversalRequest.cs
- CanonicalizationDriver.cs
- RowUpdatingEventArgs.cs
- PathData.cs
- ByteStack.cs
- ToolboxItemFilterAttribute.cs
- SafeFileMappingHandle.cs
- NullableConverter.cs
- UniformGrid.cs
- NetworkCredential.cs
- BitmapFrame.cs
- TargetPerspective.cs
- MembershipSection.cs
- HostingEnvironmentSection.cs
- FileRecordSequenceCompletedAsyncResult.cs
- DecoderFallback.cs
- JpegBitmapDecoder.cs
- ToolStripDropTargetManager.cs
- HitTestFilterBehavior.cs
- IResourceProvider.cs
- BmpBitmapDecoder.cs
- TransactionContextValidator.cs
- WindowsStartMenu.cs
- EnumType.cs
- MobileControlDesigner.cs
- VisualBrush.cs
- TextView.cs
- CryptographicAttribute.cs
- HyperLinkColumn.cs
- TokenBasedSetEnumerator.cs
- TraceRecord.cs
- ControlLocalizer.cs
- AtomServiceDocumentSerializer.cs
- SortQuery.cs
- XmlEntityReference.cs
- NonParentingControl.cs
- TabRenderer.cs
- FontStretchConverter.cs
- DragDeltaEventArgs.cs
- EmbeddedMailObject.cs
- TreeViewImageKeyConverter.cs
- ExpandableObjectConverter.cs
- XslTransformFileEditor.cs
- DesignerSerializationVisibilityAttribute.cs
- METAHEADER.cs
- BindingValueChangedEventArgs.cs
- COSERVERINFO.cs
- IsolatedStorageFileStream.cs
- StateWorkerRequest.cs
- GridViewDeleteEventArgs.cs
- SqlCharStream.cs
- TagPrefixCollection.cs
- GridPattern.cs
- LogConverter.cs
- Image.cs
- GeometryModel3D.cs
- CroppedBitmap.cs
- ManagementScope.cs
- SystemIPGlobalProperties.cs
- DependencySource.cs
- GradientStop.cs
- QueryCacheEntry.cs
- JsonFormatMapping.cs
- ReversePositionQuery.cs
- WpfPayload.cs
- XamlPointCollectionSerializer.cs
- ShaderEffect.cs
- ActivationServices.cs
- ReliableReplySessionChannel.cs
- QilBinary.cs
- VariableBinder.cs
- NominalTypeEliminator.cs
- DBDataPermission.cs
- CultureSpecificStringDictionary.cs
- FrameworkEventSource.cs
- ValidationPropertyAttribute.cs
- HandlerBase.cs
- MenuItemStyle.cs
- PoisonMessageException.cs
- TextServicesPropertyRanges.cs
- MimeReturn.cs
- QueryCursorEventArgs.cs
- HttpCapabilitiesEvaluator.cs
- AxisAngleRotation3D.cs