19.04.2013 Views

IntegralUI TreeListView User Guide - Lidor Systems

IntegralUI TreeListView User Guide - Lidor Systems

IntegralUI TreeListView User Guide - Lidor Systems

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If you wan to remove all subitems, use the Clear method<br />

[VB]<br />

node.SubItems.Clear();<br />

[C#]<br />

node.SubItems.Clear();<br />

Standard selection<br />

By default selection is only applied to nodes as a whole. In order to have a precific subitem<br />

selected, at first the AllowSubItemSelection needs to be set to True. This will allow specific<br />

subitem to be selected when you click in their space.<br />

All selected subitems are stored in SelectedSubItems collection. This collection can be used if you<br />

to search only through selected subitems, regardless at which node belongs. As with nodes, there<br />

is also a property SelectedSubItem which holds the current selected subitem.<br />

Frame selection<br />

Subitems can also be selected by creating a frame arround them. Every subitem which has his<br />

bounds contained as part or as a whole in the created frame region, will be automatically selected<br />

at the end of the operation. In order to allow this operation to start, the AllowFrameSelection<br />

property needs to be set to True. The frame selection is also dependent on the<br />

AllowSubItemSelection property. There is no reason to start this operation if this property is set to<br />

False.<br />

Here is a picture which shows this:<br />

Start of a frame selection End of a frame selection<br />

Drag&Drop operations<br />

The <strong>IntegralUI</strong> <strong>TreeListView</strong> control has built-in support for standard drag&drop operations like:<br />

drag and drop of single node, copy/move the node/s from one <strong>TreeListView</strong> to other controls etc.<br />

In the following sections we will give you information on how you can use various permissions<br />

during drag&drop operations, and how to extend this by creating your own custom operation.<br />

46

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!