DevExpress TreeList用法总结

摘要:
http://blog.itpub.net/29251214/viewspace-774395/http://blog.csdn.net/czp_huster/article/details/50184691http://www.cnblogs.com/Lixinhua-GoOn/p/4046042.htmldevtreest控件,它显示三角字符或+字符。解决方案1:在程序中。c

http://blog.itpub.net/29251214/viewspace-774395/

http://blog.csdn.net/czp_huster/article/details/50184691

http://www.cnblogs.com/Lixinhua-GoOn/p/4046042.html

dev treelist控件,显示3角符,或显示+ -符的控制

解决方案1:

  在 program.cs中把 下面一句暂时注解,你就会发现所有的 treelist会自动显示 + -号;

     如果放出来,就显示3角符


        DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("DevExpress Style");

解决方案2:

   自己画+-号

private void treeList1_CustomDrawNodeButton(object sender, DevExpress.XtraTreeList.CustomDrawNodeButtonEventArgs e)  
{  
    Brush backBrush = new System.Drawing.Drawing2D.LinearGradientBrush(e.Bounds, Color.White, Color.Black,  
em.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal);  
    e.Graphics.FillRectangle(backBrush, e.Bounds);  
    // painting 3D borders  
    ControlPaint.DrawBorder3D(e.Graphics, e.Bounds, Border3DStyle.Flat);  
  
    // determining the character to display  
    string displayCharacter = e.Expanded ? "-" : "+";  
    // formatting the output character  
    StringFormat outCharacterFormat = new StringFormat();  
    outCharacterFormat.Alignment = StringAlignment.Center;  
    outCharacterFormat.LineAlignment = StringAlignment.Center;  
  
    // painting the character  
    e.Graphics.DrawString(displayCharacter, new Font("Verdana", 8),  
      new SolidBrush(Color.White), e.Bounds, outCharacterFormat);  
  
    // prohibiting default painting  
    e.Handled = true;  
  
}

  

免责声明:文章转载自《DevExpress TreeList用法总结》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇Pyhton3+AirTest+[005]+小程序UI自动化之报错:uid 2000 does not have android.permission.WRITE_SECURE_SETTINGS解决方法Windows平台Python编程必会模块之pywin32下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

随便看看

jenkins 配置 ssh连接远程服务器并执行相关命令

5、配置完成后,点击TestConfiguration返回Success即证明Jenkins所在宿主机可以正常链接到待部署机。...

Centos7 挂载

1.Mount命令:Mount语法格式:Mount Mount设备文件信息Mount point(目录)注意:装载点(目录)必须有一个装载CD-ROM驱动器:Mount/dev/cdrom/mnt 2.卸载命令:umount语法格式:umountmount point(directory)3.查看磁盘装载状态/查看磁盘使用情况df4。存储设备通电时自动装载#...

Android Exception 10(server)' ~ Channel is unrecoverably broken and will be disposed!)

08-1119:22:35.028:W/MemoryDealer(2123):madvise(0x43e1600012288,MADV_REMOVE)返回操作不支持传输端点08-1119:22-35.038:W/InputDispatcher(2714):channel'4236b890com.tongyan.activi...

转:(WIN)S04-CH01 PCIE XDMA开发环境搭建以及环路测试

XDMAIP使用部分教程分LINUX篇和WINDOWS篇两个部分。通过实战,面向应用,提供给大家XILINXFPGAPCIE应用解决方案。本教程以MK7160FA作为样机测试。这是一款高性价比的FPGA开发板。而M_AXI_LITE挂载的BRAM是需要进行BAR空间操作,所以地址设置为0x80000000...

微信小程序生成带参数的二维码(小程序码)独家asp.net的服务端c#完整代码

1) 我第一次使用wx。小程序端请求调用API,发现这是一个坑!@-_~Page:'pages/index/index',//在此处填写要跳转到的小程序页面。你不能在它前面添加/oh。发布后必须为1024页//小程序代码的边长,以像素为单位,范围[2801280]},标头:{'content-type':“application/json;charset=U...

H3C系列之三层交换机系统版本升级

本文中涉及的硬件和软件交换机:H3CS3600-28TP-SItftp软件:tftpd32软件升级文件:S36SI_ E-CMW310-R1702P44.zip升级文件描述如下:S36SI_ E-CMW310-R1702P44-S168.bin168-bitSSH加密应用程序S3600_ V606.btmbootrom(downloadedynetworkp...