Foxtable(狐表)用户栏目专家坐堂 → [求助]单元格百分比绘图


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

主题:[求助]单元格百分比绘图

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2019/5/26 13:59:00 [显示全部帖子]

参考

 

If e.Col.Name = "进度" AndAlso e.Row.IsNull("进度") = False Then
    e.StartDraw()
    Dim Width As Integer = (e.Width - 2 )* e.Row("进度") \ 100
    If e.Row("进度") = 1 Then
        e.Graphics.FillRectangle(Brushes.Green,e.x + 1,e.y + 1, Width, e.Height - 2)
    ElseIf 0.9 <= e.Row("进度") AndAlso e.Row("进度") < 1 Then
        e.Graphics.FillRectangle(Brushes.Red,e.x + 1,e.y + 1, Width, e.Height - 2)
    Else 
        e.Graphics.FillRectangle(Brushes.blue,e.x + 1,e.y + 1, Width, e.Height - 2)
    End If
    e.EndDraw()
End If

 


 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2019/5/27 17:22:00 [显示全部帖子]

 

代码写到窗口afterLoad事件,不行?

 

 


 回到顶部