The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
i don;t know if i'm missing the point here but i am having problems programatically creating TreeNodeAdvStyleInfo objects, setting the font / colour diferent on each one, and the assigning them to a programatically created Node. Can some one post a quick sample.
thanks
Trev
ASArun Srinivasan Syncfusion Team October 6, 2003 06:01 PM UTC
Hi Trev,
Here is a code snippet which should help you out on this issue:
//Create TreeNodeAdvStyleInfo
TreeNodeAdvStyleInfo si = new TreeNodeAdvStyleInfo();
//Set TreeNodeAdvStyleInfo values
si.TextColor = Color.AntiqueWhite;
//Set the node style
this.treeViewAdv2.BaseStyles["MyBaseStyle"] = si;
this.treeViewAdv2.Nodes[0].NodeData.BaseStyle ="MyBaseStyle";
Regards,
Arun