home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2005 November / PCWELT_11_2005.ISO / pcwsoft / Commandbar-Source.z.exe / BandObjects / Attributes.cs < prev    next >
Encoding:
Text File  |  2002-06-10  |  1012 b   |  41 lines

  1. // Pavel Zolnikov[http://www.codeproject.com/script/profile/whos_who.asp?id=35980], 2002
  2.  
  3. using System;
  4. using System.Reflection;
  5. using System.Runtime.InteropServices;
  6.  
  7. namespace BandObjects
  8. {
  9.     /// <summary>
  10.     /// Represents different styles of a band object.
  11.     /// </summary>
  12.     [Flags]
  13.     [Serializable]
  14.     [ComVisible(false)]
  15.     public enum BandObjectStyles : int
  16.     {
  17.         Vertical        = 1,
  18.         Horizontal        = 2,
  19.         ExplorerToolbar = 4,
  20.         TaskbarToolBar    = 8
  21.     }
  22.     
  23.     /// <summary>
  24.     /// Specifies Style of the band object, its Name(displayed in explorer menu) and HelpText(displayed in status bar when menu command selected).
  25.     /// </summary>
  26.     [ComVisible(false)]
  27.     [AttributeUsage(AttributeTargets.Class)]
  28.     public sealed class BandObjectAttribute : System.Attribute
  29.     {
  30.         public BandObjectAttribute(){}
  31.  
  32.         public BandObjectAttribute(string name, BandObjectStyles style)
  33.         {
  34.             Name = name;
  35.             Style = style;
  36.         }
  37.         public BandObjectStyles Style;
  38.         public string Name;
  39.         public string HelpText;
  40.     }
  41. }