Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CompModSwitches.cs
- AutomationPatternInfo.cs
- TeredoHelper.cs
- Slider.cs
- XmlPreloadedResolver.cs
- InputEventArgs.cs
- RenderingEventArgs.cs
- TextParaLineResult.cs
- TabControlCancelEvent.cs
- SoapEnumAttribute.cs
- FieldNameLookup.cs
- Marshal.cs
- SqlDataSource.cs
- PerspectiveCamera.cs
- MergeLocalizationDirectives.cs
- ItemsControl.cs
- KnownIds.cs
- DataGridViewColumnCollection.cs
- StickyNote.cs
- EarlyBoundInfo.cs
- _AcceptOverlappedAsyncResult.cs
- DataObjectFieldAttribute.cs
- AlphaSortedEnumConverter.cs
- MonthChangedEventArgs.cs
- TabletCollection.cs
- XMLSyntaxException.cs
- DataListCommandEventArgs.cs
- XmlSiteMapProvider.cs
- _CookieModule.cs
- XXXOnTypeBuilderInstantiation.cs
- StringCollection.cs
- XmlTextEncoder.cs
- Button.cs
- Matrix3DValueSerializer.cs
- Site.cs
- NavigationPropertySingletonExpression.cs
- MemberMaps.cs
- ExpandableObjectConverter.cs
- UnionExpr.cs
- ProviderSettingsCollection.cs
- TraceContextRecord.cs
- ServicePoint.cs
- XmlBinaryReader.cs
- XPathQueryGenerator.cs
- RoleManagerSection.cs
- UpdateRecord.cs
- NamespaceTable.cs
- IDQuery.cs
- TemplatePropertyEntry.cs
- TextBoxAutoCompleteSourceConverter.cs
- AnnotationResource.cs
- Trace.cs
- DrawingDrawingContext.cs
- PartManifestEntry.cs
- Directory.cs
- DataGridViewColumn.cs
- InternalsVisibleToAttribute.cs
- HttpGetProtocolReflector.cs
- HttpTransportElement.cs
- ContractListAdapter.cs
- SapiInterop.cs
- COM2FontConverter.cs
- IntegerValidatorAttribute.cs
- NavigationProperty.cs
- GridViewPageEventArgs.cs
- OdbcStatementHandle.cs
- KnownColorTable.cs
- RowVisual.cs
- MetadataWorkspace.cs
- ClientApiGenerator.cs
- XDeferredAxisSource.cs
- Function.cs
- TransformCollection.cs
- Animatable.cs
- HttpCachePolicy.cs
- Constraint.cs
- DbProviderSpecificTypePropertyAttribute.cs
- CFGGrammar.cs
- CommonXSendMessage.cs
- GacUtil.cs
- __ConsoleStream.cs
- ClientUtils.cs
- SmtpReplyReader.cs
- StateWorkerRequest.cs
- VectorCollection.cs
- DockProviderWrapper.cs
- RemoteWebConfigurationHostStream.cs
- _CookieModule.cs
- TextFormatterImp.cs
- NodeLabelEditEvent.cs
- CompoundFileIOPermission.cs
- TemplateBuilder.cs
- WindowsRichEditRange.cs
- FrameworkRichTextComposition.cs
- InstanceCreationEditor.cs
- ModuleBuilderData.cs
- ApplicationSecurityInfo.cs
- ScrollChrome.cs
- PeerApplicationLaunchInfo.cs
- ImageMapEventArgs.cs