IntegralUI TreeListView User Guide - Lidor Systems
IntegralUI TreeListView User Guide - Lidor Systems
IntegralUI TreeListView User Guide - Lidor Systems
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
}<br />
}<br />
}<br />
. . .<br />
column.Width = 100;<br />
break;<br />
this.treeListView1.Columns.Add(column);<br />
private void CreateSubItems(<strong>TreeListView</strong>Node parentNode,string sufix)<br />
{<br />
// Create subitems for specified node<br />
<strong>TreeListView</strong>SubItem subItem = null;<br />
for (int j = 0; j < this.treeListView1.Columns.Count; j++)<br />
{<br />
subItem = new <strong>TreeListView</strong>SubItem();<br />
}<br />
switch (this.treeListView1.Columns[j].ContentType)<br />
{<br />
case ColumnContentType.Image:<br />
subItem.Image = imgCountries.Images[nodeIndex % 9];<br />
break;<br />
}<br />
. . .<br />
default:<br />
subItem.Text = "Item " + sufix + j.ToString();<br />
break;<br />
For images we are using an ImageList which contains a set of 9 images. Because of this you will<br />
notice that we use the following code line:<br />
[VB]<br />
subItem.Image = imgCountries.Images(nodeIndex Mod 9)<br />
[C#]<br />
subItem.Image = imgCountries.Images[nodeIndex % 9];<br />
The result is:<br />
30