TreeView in VB.Net

TreeView

TreeView control का use डाटा को Tree format मे display करने के लिए किया जाता है। यह Data structure के Tree डाटा स्ट्रक्चर को implement करता है। इसमे information hierarchical structure मे display होती है। यह windows explorer की तरह ही items को explorer करती है।

Image result for TreeView in vb.net

Image result for TreeView in vb.net

Properties of TreeView

  • Name: इसका use treeview control के name को set करने के लिए किया जाता है। जो की coding मे use होता है।
  • CheckBoxes: इसके true होने पर Tree items मे checkbox भी display होता है। जो selection मे use होता है। इसे multiple selection के लिए use किया जाता है।
  • ShowLine: इसके true होने पर tree control मे child और parent node के बीच line display होती है।
  • ShowPlusMinus: इसके true होने पर tree nodes मे plus/ minus की button display होती हैं यदि कोई child item available होता है।
  • FullRowSelect: इसके true होने पर किसी node को select करने पर उसके सभी child node भी select हो जाते हैं।
  • ShowRootLine: इस property के true होने पर Tree control मे एक root-line display होती है।
  • Sorted: इसके true होने पर Tree view के nodes sort होकर display होंगे।
  • Text: यह property Tree view control मे select किए गए node के text को represent करती है।
  • TopNode: इसका use TreeView के First node को get करने के लिए किया जाता है।
  • VisibleCount: यह सभी visible tree nodes के items को count करके return करती है।

error: Content is protected !!