// *********************************************************************** // Assembly : HZH_Controls // Created : 2019-10-08 // // *********************************************************************** // // Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com // // // Blog: https://www.cnblogs.com/bfyx // GitHub:https://github.com/kwwwvagaa/NetWinformControl // gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git // // If you use this code, please keep this note. // *********************************************************************** using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; namespace HZH_Controls.Controls { /// /// Class NavigationMenuItem. /// public class NavigationMenuItem : NavigationMenuItemBase { /// /// The items /// private NavigationMenuItem[] items; /// /// Gets or sets the items. /// /// The items. [Description("子项列表")] public NavigationMenuItem[] Items { get { return items; } set { items = value; if (value != null) { foreach (var item in value) { item.ParentItem = this; } } } } /// /// Gets or sets a value indicating whether this instance has split lint at top. /// /// true if this instance has split lint at top; otherwise, false. [Description("是否在此项顶部显示一个分割线")] public bool HasSplitLintAtTop { get; set; } /// /// Gets the parent item. /// /// The parent item. [Description("父节点")] public NavigationMenuItem ParentItem { get; private set; } } }