110,561
社区成员
发帖
与我相关
我的任务
分享
byte[] buffer = new System.Net.WebClient().DownloadData("http://172.7.43.111/serviceonline/icons/Face/0.gif");
MemoryStream ms = new MemoryStream(buffer);
System.Drawing.Image bmp = Bitmap.FromStream(ms);
Clipboard.SetDataObject(bmp);
DataFormats.Format myFormat = DataFormats.GetFormat(DataFormats.Bitmap);
if (richTextBox1.CanPaste(myFormat))
{
richTextBox1.Paste(myFormat);
}
richTextBox1.Rtf += " 这些是测试内容......."
if (richTextBox1.CanPaste(myFormat))
{
richTextBox1.Paste(myFormat);
}
//搜索指定内容文字
richTextBox1.Find("这是测试内容。。。", RichTextBoxFinds.MatchCase);
//设置选定内容的字体和颜色
richTextBox1.SelectionFont = new Font("Verdana", 12, FontStyle.Bold);
richTextBox1.SelectionColor = Color.Red;
//设置选定内容的段落设置为项目符号列表格式
richTextBox1.SelectionBullet = true;
//设置选定内容的段落缩进
richTextBox1.SelectionIndent = 8;
richTextBox1.SelectionHangingIndent = 3;
richTextBox1.SelectionRightIndent = 12;
//搜索指定内容文字
richTextBox1.Find("这是测试内容。。。", RichTextBoxFinds.MatchCase);
//设置选定内容的字体和颜色
richTextBox1.SelectionFont = new Font("Verdana", 12, FontStyle.Bold);
richTextBox1.SelectionColor = Color.Red;
//设置选定内容的段落设置为项目符号列表格式
richTextBox1.SelectionBullet = true;
//设置选定内容的段落缩进
richTextBox1.SelectionIndent = 8;
richTextBox1.SelectionHangingIndent = 3;
richTextBox1.SelectionRightIndent = 12;
//搜索指定内容文字
richTextBox1.Find("这是测试内容。。。", RichTextBoxFinds.MatchCase);
//设置选定内容的字体和颜色
richTextBox1.SelectionFont = new Font("Verdana", 12, FontStyle.Bold);
richTextBox1.SelectionColor = Color.Red;
//设置选定内容的段落设置为项目符号列表格式
richTextBox1.SelectionBullet = true;
//设置选定内容的段落缩进
richTextBox1.SelectionIndent = 8;
richTextBox1.SelectionHangingIndent = 3;
richTextBox1.SelectionRightIndent = 12;
richTextBox1.AppendText("这些是测试内容.......");