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
- ReflectionTypeLoadException.cs
- X509Utils.cs
- DragDeltaEventArgs.cs
- XmlDocument.cs
- GestureRecognizer.cs
- Compiler.cs
- WindowsEditBox.cs
- COM2IProvidePropertyBuilderHandler.cs
- SubpageParagraph.cs
- AccessViolationException.cs
- PageEventArgs.cs
- Style.cs
- SerializationUtilities.cs
- WebServiceClientProxyGenerator.cs
- RepeaterItemCollection.cs
- SerializationStore.cs
- GPRECT.cs
- ArcSegment.cs
- validationstate.cs
- HtmlInputFile.cs
- BufferedStream.cs
- IdentityValidationException.cs
- FieldBuilder.cs
- Matrix3D.cs
- DecoratedNameAttribute.cs
- TableLayout.cs
- ICspAsymmetricAlgorithm.cs
- JsonFormatReaderGenerator.cs
- PersonalizableAttribute.cs
- OptimizerPatterns.cs
- NativeMethods.cs
- ConsoleCancelEventArgs.cs
- AnnotationResourceCollection.cs
- PropertyPathWorker.cs
- ExtensionWindow.cs
- InputBindingCollection.cs
- DataGridViewSortCompareEventArgs.cs
- ColumnMap.cs
- ButtonRenderer.cs
- Rect.cs
- WebConfigurationFileMap.cs
- Guid.cs
- SqlMethods.cs
- QueryTreeBuilder.cs
- XmlSchemaImport.cs
- InternalConfigSettingsFactory.cs
- LogStream.cs
- CounterSetInstance.cs
- ValueExpressions.cs
- ParentQuery.cs
- ScrollBar.cs
- BadImageFormatException.cs
- XmlJsonWriter.cs
- SrgsGrammarCompiler.cs
- Point3DIndependentAnimationStorage.cs
- ArithmeticException.cs
- BitmapImage.cs
- XmlAttributeOverrides.cs
- SevenBitStream.cs
- PropertyEmitterBase.cs
- ViewManagerAttribute.cs
- WindowsListViewScroll.cs
- QueryExpr.cs
- Path.cs
- Privilege.cs
- CookielessHelper.cs
- FixUpCollection.cs
- SecurityTokenSpecification.cs
- ContentFilePart.cs
- ContentPresenter.cs
- XmlSignificantWhitespace.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- VideoDrawing.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ManagementOperationWatcher.cs
- DiscoveryDocumentSearchPattern.cs
- _IPv4Address.cs
- Enlistment.cs
- Convert.cs
- ActivityExecutionFilter.cs
- StylusOverProperty.cs
- RecognitionEventArgs.cs
- StrokeCollectionConverter.cs
- StylusDevice.cs
- UiaCoreApi.cs
- DockAndAnchorLayout.cs
- Comparer.cs
- TextDecorations.cs
- SqlFunctionAttribute.cs
- SourceFileInfo.cs
- AssertFilter.cs
- PackagePartCollection.cs
- BigInt.cs
- DataContractSerializerOperationFormatter.cs
- ToolStripSystemRenderer.cs
- CommandField.cs
- TableLayoutSettings.cs
- HtmlElement.cs
- VirtualPathData.cs
- ShutDownListener.cs