I need to change the font for a TreeListNode element in an XtraTreeList
There is a Font property for the standard TreeViewNode.
Checkout DevExpress
XtraTreeList NodeCellStyle Event
How to customize the appearance of individual cells
using DevExpress.XtraTreeList; private void treeList1_NodeCellStyle(object sender, GetCustomNodeCellStyleEventArgs e) { // Modifying the appearance settings used to paint the "Budget" column cells // whose values are greater than 500,000 . if (e.Column.FieldName != "Budget") return; if (Convert.ToInt32(e.Node.GetValue(e.Column.AbsoluteIndex)) > 500000) { e.Appearance.BackColor = Color.FromArgb(80, 255, 0, 255); e.Appearance.ForeColor = Color.White; e.Appearance.Font = new Font(e.Appearance.Font, FontStyle.Bold); } }
Or you can use the TreeList.CustomDrawNodeCell event.
Source: https://habr.com/ru/post/1347096/More articles:.NET: Saving image to clipboard in PNG is not performed - .netHow to check if a string sets a directory? - c ++Using Xsl: value-of - Convert & to url in & - xsltMake TinyMCE work properly with JEditable - jqueryDelphi2010-IDE continues to dwell on CPU debug window - debuggingFuzzy string search in Java, including word swaps - javaHow can I solve "Unable to make a static link to non-static fields or method"? - javaConnecting the rails sunspot application to the tomcat / solr server with authorization - ruby-on-railsOpenRasta with .Net 4.0 runs on Win 7 64 with IIS7.5 - iis-7.5Modulation of existing web applications with OSGi - javaAll Articles