using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
using System.IO;
namespace Pub
{
public class CRichTestBoxMenu
{
public ContextMenuStrip richMenu = new ContextMenuStrip();
public ToolStripMenuItem CMcopy = new ToolStripMenuItem("复制");
public ToolStripMenuItem CMcut = new ToolStripMenuItem("剪贴");
public ToolStripMenuItem CMdel = new ToolStripMenuItem("删除");
public ToolStripMenuItem CMcancle = new ToolStripMenuItem("撤销");
public ToolStripMenuItem CMpaste = new ToolStripMenuItem("粘贴");
public ToolStripMenuItem CMselectall = new ToolStripMenuItem("全选");
public ToolStripMenuItem CMalign = new ToolStripMenuItem("右对齐");
public RichTextBox richTextBox;
RichTextBox自动添加右键菜单
最新推荐文章于 2023-08-28 14:12:18 发布
本文介绍如何在RichTextBox控件上自定义并实现右键菜单功能,详细讲解了具体的操作步骤和使用技巧,帮助开发者增强文本编辑体验。
摘要由CSDN通过智能技术生成