浏览代码

Adds Data field to MenuItem

Thomas Nind 3 年之前
父节点
当前提交
4a69da1d19
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Terminal.Gui/Views/Menu.cs

+ 6 - 0
Terminal.Gui/Views/Menu.cs

@@ -43,6 +43,12 @@ namespace Terminal.Gui {
 		ustring title;
 
 		ShortcutHelper shortcutHelper;
+		
+		/// <summary>
+		/// Gets or sets arbitrary data for the menu item.
+		/// </summary>
+		/// <remarks>This property is not used internally.</remarks>
+		public object Data { get; set; }
 
 		/// <summary>
 		/// Initializes a new instance of <see cref="MenuItem"/>