打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
V8.A10RadioButton 控件

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace V8._窗体中控件RichTextBox

{

    public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();

        }

        private void blue_Click(object sender, EventArgs e)

        {

            richTextBox1.SelectionColor = Color.Blue;   

        }

        private void red_Click(object sender, EventArgs e)

        {

            richTextBox1.SelectionColor = Color.Red;

        }

        private void ls18_Click(object sender, EventArgs e)

        {

            richTextBox1.SelectionFont = new Font("隶书",18);

        }

        private void ls20_Click(object sender, EventArgs e)

        {

            richTextBox1.SelectionFont = new Font("隶书", 20);

        }

        private void kt18_Click(object sender, EventArgs e)

        {

            richTextBox1.SelectionFont = new Font("楷体", 18);

        }

        private void kt20_Click(object sender, EventArgs e)

        {

            richTextBox1.SelectionFont = new Font("楷体", 20);

        }

        private void itms_Click(object sender, EventArgs e)

        {

            richTextBox1.SelectionBullet = true;

        }

        private void dw_Click(object sender, EventArgs e)

        {

            richTextBox1.SelectionBackColor = Color.Gray;

        }

        private void back_Click(object sender, EventArgs e)

        {

            richTextBox1.SelectionFont = new Font("宋体", 15);

            richTextBox1.SelectionColor = Color.Black ;

            richTextBox1.SelectionBullet = false ;

            richTextBox1.SelectionBackColor = Color.White;

        }

        private void Form1_Load(object sender, EventArgs e)

        {

        }

    }

}

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
RichTextBox文字处理控件使用方法
RichTextBox控件 可读取rtf
WEB页获取串口数据
[C#]richtextbox实现行号
C#中的Clipboard与ContextMenuStrip应用举例
是系统菜单--编辑项中的复制,粘贴
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服