Readonly
countThe number of rows currently selected in this tree.
The current item (the one that gets a focus rect in addition to being selected).
This attribute is a boolean indicating whether or not the "select" event should fire when the selection is changed using one of our methods. A view can use this to temporarily suppress the selection while manipulating all of the indices, e.g., on a sort. Note: setting this attribute to false will fire a select event.
Readonly
shiftThe selection "pivot". This is the first item the user selected as part of a ranged select.
Readonly
singleThis attribute is a boolean indicating single selection.
The tree widget for this selection.
Optional
aInstancePtr: objectA run time mechanism for interface discovery.
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.
aInstancePtr must not be null.
[in] A requested interface IID
[out] A pointer to an interface pointer to receive the result.
Select the range specified by the indices. If augment is true, then we add the range to the selection without clearing out anything else. If augment is false, everything is cleared except for the specified range.
Generated using TypeDoc
The following interface is not scriptable and MUST NEVER BE MADE scriptable. Native treeselections implement it, and we use this to check whether a treeselection is native (and therefore suitable for use by untrusted content).