Foxtable(狐表)用户栏目专家坐堂 → 字符颜色设置


  共有4920人关注过本帖树形打印复制链接

主题:字符颜色设置

帅哥哟,离线,有人找我吗?
lsy
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:5246 积分:33163 威望:0 精华:8 注册:2013/1/17 21:28:00
  发帖心情 Post By:2015/4/17 18:13:00 [显示全部帖子]

参考:

DrawCell
If e.Col.Name = "第二列" Then
    e.StartDraw()
    e.Text = Nothing
    Dim x As Integer = e.X + 1
    Dim y As Integer = e.Y + 3
    For Each s As String In e.Row("第二列")
        If e.Row("第一列").Contains(s) Then
            e.Graphics.DrawString(s,e.Table.Font, Brushes.Red, x, y)
            x + = 9
        Else
            e.Graphics.DrawString(s,e.Table.Font, Brushes.Black, x, y)
            x + = 9
        End If
    Next
    e.EndDraw()
End If

 回到顶部