using System; using System.Runtime.InteropServices; using System.Reflection; namespace Foo.Deskband.BandObject { /// /// Represents different styles of a band object. /// [Flags] [Serializable] public enum BandObjectStyle : uint { Vertical = 1, Horizontal = 2, ExplorerToolbar = 4, TaskbarToolBar = 8 } /// /// Specifies Style of the band object, its Name(displayed in explorer menu) and HelpText(displayed in status bar when menu command selected). /// [AttributeUsage(AttributeTargets.Class)] public class BandObjectAttribute : System.Attribute { public BandObjectAttribute(){} public BandObjectAttribute(string name, BandObjectStyle style) { Name = name; Style = style; } public BandObjectStyle Style; public string Name; public string HelpText; } }