110,566
社区成员
发帖
与我相关
我的任务
分享
Private DSL As New DSAPI.图形图像.彩色文字图像
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
With DSL
.画布尺寸 = Label1.Size
.字符行距 = 2
.代码文本 = "<color=0,0,0>本月工资将</color><color=255,0,0><b>延迟3天</b></color><color=0,0,0>发放</color>"
End With
Label1.Text = ""
Label1.BackgroundImage = DSL.输出图像
End Sub
for (int i = 0; i < str.Length;i++ )
{
int lenth = richTextBox1.Text.Length;
richTextBox1.AppendText(str[i]+"\r\n");
if (richTextBox1.Lines[i].Contains("good"))
{
richTextBox1.Select(lenth + richTextBox1.Lines[i].IndexOf("good"), 4);
richTextBox1.SelectionColor = Color.Red;
}
}