1 //------------------------------------------------------------------------------
2 // <copyright file="ProvideToolboxFormatAttribute.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //------------------------------------------------------------------------------
7 namespace Microsoft
.VisualStudio
.Shell
{
11 /// <include file='doc\ProvideToolboxFormatAttribute.uex' path='docs/doc[@for="ProvideToolboxFormatAttribute"]' />
13 /// This attribute declares a single toolbox clipboard format that
14 /// the package supports. Multiple attributes can be added to
15 /// a package to allow more than one clipboard format. By
16 /// providing this attribute on your package, you enable
17 /// users to drag data objects containing this format onto the
18 /// toolbox. You must still handle the drop notifications
21 [AttributeUsage(AttributeTargets
.Class
, Inherited
=true, AllowMultiple
=true)]
22 public sealed class ProvideToolboxFormatAttribute
: Attribute
{
24 private string _format
;
26 /// <include file='doc\ProvideToolboxFormatAttribute.uex' path='docs/doc[@for="ProvideToolboxFormatAttribute.ProvideToolboxFormatAttribute"]' />
28 /// Creates a new ProvideToolboxFormatAttribute.
30 public ProvideToolboxFormatAttribute(string format
) {
33 throw new ArgumentNullException("format");
39 /// <include file='doc\ProvideToolboxFormatAttribute.uex' path='docs/doc[@for="ProvideToolboxFormatAttribute.Format"]' />
41 /// Returns the clipboard format to enable for this package.
43 public string Format
{