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
- GeneralTransform3D.cs
- ListControl.cs
- XmlSchemaSimpleContentExtension.cs
- TableCellCollection.cs
- BindingSource.cs
- ComponentManagerBroker.cs
- XmlExpressionDumper.cs
- ControlAdapter.cs
- EncodingTable.cs
- LoginUtil.cs
- SafeRightsManagementHandle.cs
- Table.cs
- ExcludePathInfo.cs
- ContentPresenter.cs
- AssemblySettingAttributes.cs
- DoubleCollectionValueSerializer.cs
- ObjectAnimationUsingKeyFrames.cs
- DllHostInitializer.cs
- DataGridTableStyleMappingNameEditor.cs
- GridViewAutoFormat.cs
- SqlConnectionStringBuilder.cs
- FormsAuthenticationModule.cs
- ForceCopyBuildProvider.cs
- ExpressionBuilderContext.cs
- ManagementException.cs
- handlecollector.cs
- Encoder.cs
- DataGridHeaderBorder.cs
- Knowncolors.cs
- TemplateBaseAction.cs
- SuppressMessageAttribute.cs
- MasterPage.cs
- ListViewInsertEventArgs.cs
- GridViewRowEventArgs.cs
- Visitor.cs
- StructuredTypeInfo.cs
- FaultReasonText.cs
- DetailsViewModeEventArgs.cs
- TransformGroup.cs
- SecurityPolicySection.cs
- NetCodeGroup.cs
- FontFamily.cs
- Graphics.cs
- UrlPath.cs
- PathFigureCollectionConverter.cs
- TreeViewImageIndexConverter.cs
- CommandLineParser.cs
- ColorPalette.cs
- FormViewRow.cs
- Wow64ConfigurationLoader.cs
- wgx_commands.cs
- DataBoundControlHelper.cs
- XmlAtomErrorReader.cs
- StringFormat.cs
- DesignerDataTableBase.cs
- ConfigXmlElement.cs
- CapabilitiesRule.cs
- CookieParameter.cs
- ConstructorBuilder.cs
- HighlightVisual.cs
- storepermission.cs
- CodeLinePragma.cs
- XmlSchemaSimpleTypeList.cs
- Internal.cs
- RepeatButtonAutomationPeer.cs
- EdmProperty.cs
- Types.cs
- HeaderElement.cs
- ConfigXmlComment.cs
- GatewayIPAddressInformationCollection.cs
- IntSecurity.cs
- DataSvcMapFile.cs
- WebPartTransformer.cs
- DrawListViewSubItemEventArgs.cs
- NamespaceImport.cs
- MediaCommands.cs
- TextEffectResolver.cs
- AttributeQuery.cs
- TemplateControlParser.cs
- NegatedCellConstant.cs
- NavigationPropertyEmitter.cs
- DataGridViewRowCollection.cs
- WorkflowServiceAttributesTypeConverter.cs
- ThemeDirectoryCompiler.cs
- odbcmetadatafactory.cs
- Panel.cs
- UserValidatedEventArgs.cs
- TextBox.cs
- ListSourceHelper.cs
- IQueryable.cs
- DataControlImageButton.cs
- ProviderIncompatibleException.cs
- StateWorkerRequest.cs
- AvtEvent.cs
- isolationinterop.cs
- ProviderConnectionPoint.cs
- XPathChildIterator.cs
- AuthorizationRule.cs
- EntityCollectionChangedParams.cs
- TimeSpanValidator.cs