title: Change treeview item text (Delphi XE)
body: <p>I am using delphi xe</p>
  
  <p>I want to change text of treeview node at runtime which has been circled in screen shot.
  <img src="https://i.stack.imgur.com/qnIYn.png" alt="enter image description here"></p>
  
  <p>I am using the code below to change it</p>
  
  <pre><code>TreeView1.Items[2].Item[6].Text:='Some Text';
  </code></pre>
  
  <p>But getting the error below</p>
  
  <p><strong>List index out of bound(6)</strong></p>
  
  <p>However the same code works if I change the text of any subitem of first item such as</p>
  
  <pre><code>TreeView1.Items[0].Item[1].Text:='Some Text';
  </code></pre>
  
  <p><a href="https://www.dropbox.com/s/629rna4huezt2zc/Untitled.png" rel="nofollow noreferrer">Screen Shot</a></p>