using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; namespace HZH_Controls.Controls { public class NavigationMenuItemBase { /// /// The icon /// private Image icon; /// /// Gets or sets the icon. /// /// The icon. [Description("图标,仅顶级节点有效")] public Image Icon { get { return icon; } set { icon = value; } } /// /// The text /// private string text; /// /// Gets or sets the text. /// /// The text. [Description("文本")] public string Text { get { return text; } set { text = value; } } /// /// The show tip /// private bool showTip; /// /// Gets or sets a value indicating whether [show tip].当TipText为空时只显示一个小圆点,否则显示TipText文字 /// /// true if [show tip]; otherwise, false. [Description("是否显示角标,仅顶级节点有效")] public bool ShowTip { get { return showTip; } set { showTip = value; } } /// /// The tip text /// private string tipText; /// /// Gets or sets the tip text /// /// The tip text. [Description("角标文字,仅顶级节点有效")] public string TipText { get { return tipText; } set { tipText = value; } } /// /// The anchor right /// private bool anchorRight; /// /// Gets or sets a value indicating whether [anchor right]. /// /// true if [anchor right]; otherwise, false. [Description("是否靠右对齐")] public bool AnchorRight { get { return anchorRight; } set { anchorRight = value; } } /// /// The item width /// private int itemWidth = 100; /// /// Gets or sets the width of the item. /// /// The width of the item. [Description("宽度")] public int ItemWidth { get { return itemWidth; } set { itemWidth = value; } } /// /// Gets or sets the data source. /// /// The data source. [Description("数据源")] public object DataSource { get; set; } } }