menuitemwithtag.cs

来自「.net compact framework环境下的OpenDialog对话框的」· CS 代码 · 共 21 行

CS
21
字号
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace MobilePractices.OpenFileDialogEx
{
    // This is a normal menu item except it has a Tag property that
    // allows us to associate arbitrary data with the menu item.
    internal class MenuItemWithTag<T> : MenuItem
    {
        private T tag;

        public T Tag
        {
            get { return tag; }
            set { tag = value; }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?