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
- DesignerView.xaml.cs
- EndOfStreamException.cs
- AutomationPatternInfo.cs
- NameNode.cs
- IdentitySection.cs
- ConnectionPointCookie.cs
- WorkItem.cs
- Literal.cs
- StringDictionaryWithComparer.cs
- FixedNode.cs
- OleDbFactory.cs
- SQLSingle.cs
- WmfPlaceableFileHeader.cs
- SystemIPv6InterfaceProperties.cs
- FileVersionInfo.cs
- QueryCacheKey.cs
- DataGridViewCellCollection.cs
- DataSetSchema.cs
- TextParentUndoUnit.cs
- ClosableStream.cs
- HTTPRemotingHandler.cs
- DataGridRow.cs
- BlurEffect.cs
- KeyboardDevice.cs
- Mutex.cs
- ToolboxComponentsCreatedEventArgs.cs
- ComplexPropertyEntry.cs
- SEHException.cs
- SortQuery.cs
- TraceSection.cs
- HashStream.cs
- RuleValidation.cs
- ValidationPropertyAttribute.cs
- MembershipUser.cs
- AuthenticatingEventArgs.cs
- UmAlQuraCalendar.cs
- UnconditionalPolicy.cs
- GridItemPattern.cs
- NameValuePair.cs
- PhysicalFontFamily.cs
- LinkClickEvent.cs
- ReferenceEqualityComparer.cs
- OpenCollectionAsyncResult.cs
- XsltArgumentList.cs
- SafeCertificateContext.cs
- WindowsTab.cs
- DependencyPropertyAttribute.cs
- TextBlock.cs
- IndexerNameAttribute.cs
- HtmlGenericControl.cs
- Pipe.cs
- DesignerContextDescriptor.cs
- SubqueryRules.cs
- ToolStripTextBox.cs
- BitmapEffectState.cs
- returneventsaver.cs
- OdbcEnvironment.cs
- StringValueConverter.cs
- RegisteredScript.cs
- FrugalMap.cs
- RSAOAEPKeyExchangeDeformatter.cs
- QueueException.cs
- SqlNotificationEventArgs.cs
- DynamicResourceExtension.cs
- panel.cs
- InstanceKeyCollisionException.cs
- TdsParser.cs
- DecimalAnimation.cs
- VSDExceptions.cs
- RegularExpressionValidator.cs
- SqlInternalConnectionTds.cs
- HttpRequest.cs
- SessionStateContainer.cs
- CorrelationKeyCalculator.cs
- StylusEventArgs.cs
- DbMetaDataColumnNames.cs
- ListControlBuilder.cs
- XmlRootAttribute.cs
- AsymmetricSignatureDeformatter.cs
- XmlSchemaRedefine.cs
- MissingFieldException.cs
- DrawingServices.cs
- CapabilitiesRule.cs
- HttpClientCertificate.cs
- PartialToken.cs
- HandlerElement.cs
- SafeNativeMethods.cs
- DesignerWithHeader.cs
- CustomTrackingRecord.cs
- XmlTextReader.cs
- EventMetadata.cs
- CharConverter.cs
- AuthorizationRuleCollection.cs
- dataobject.cs
- Membership.cs
- InstanceCreationEditor.cs
- ListViewDataItem.cs
- AstNode.cs
- DependencyPropertyChangedEventArgs.cs
- FlowDocumentScrollViewer.cs