// Copyright Pavel Zolnikov, 2002 // // http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx using System; using System.Runtime.InteropServices; using System.Reflection; namespace BandObjectLib { /// /// Represents different styles of a band object. /// [Flags] [Serializable] public enum BandObjectStyle : uint { Vertical = 1, Horizontal = 2, ExplorerToolbar = 4, TaskbarToolBar = 8, ExplorerBar = 16 } /// /// 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; } }