Exemplo n.º 1
0
 /// <summary>
 /// 设置内容以及链接地址。
 /// </summary>
 /// <param name="text">字符串。</param>
 /// <param name="iconName">图标类型。</param>
 /// <param name="priority">优先级,越大越靠前。</param>
 /// <returns>返回当前实例。</returns>
 public MenuItem Texted(string text, IconType iconName, int priority = 0)
 {
     Priority = priority;
     Text     = text;
     IconName = iconName.ToDescriptionString();
     return(this);
 }