Used with the SftTree.SelectionStyle property defining whether items or cells are selectable within the item area.
Class: (none)
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public enum SelectionStyleEnum;
Public Enum SelectionStyleEnum
| Name | Description |
|---|---|
| SingleItem | Only one item can be selected at a time. |
| MultipleItems | Multiple discontiguous or contiguous items can be selected at the same time. |
| SingleCell | Only one cell can be selected at a time. |
| MultipleCells | Multiple discontiguous or contiguous cells can be selected at the same time. |
| BlockOfCells | Multiple contiguous cells in the shape of a rectangular block of cells can be selected at the same time. |
Used with the SftTree.SelectionStyle property defining whether items or cells are selectable within the item area.
private void ExpandCollapseButtonsNormal() {
sftTree1.ButtonLook = ButtonLookEnum.ThemedSystem;
sftTree1.TreeLinesPen = LinesPenStyleEnum.Solid;
sftTree1.TreeLineStyle = TreeLineStyleEnum.AllLevels;
}
private void SelectOneItem() {
sftTree1.SelectionStyle = SelectionStyleEnum.SingleItem;
sftTree1.ItemCollection[0].Children[0].Selected = true;
}
private void SelectItems() {
sftTree1.SelectionStyle = SelectionStyleEnum.MultipleItems;
sftTree1.ItemCollection[0].Children[0].Selected = true;
sftTree1.ItemCollection[0].Children[0].Children[0].Selected = true;
}
private void SelectOneCell() {
Private Sub ExpandCollapseButtonsNormal()
sftTree1.ButtonLook = ButtonLookEnum.ThemedSystem
sftTree1.TreeLinesPen = LinesPenStyleEnum.Solid
sftTree1.TreeLineStyle = TreeLineStyleEnum.AllLevels
End Sub
Private Sub SelectOneItem()
sftTree1.SelectionStyle = SelectionStyleEnum.SingleItem
sftTree1.ItemCollection(0).Children(0).Selected = True
End Sub
Private Sub SelectItems()
sftTree1.SelectionStyle = SelectionStyleEnum.MultipleItems
sftTree1.ItemCollection(0).Children(0).Selected = True
sftTree1.ItemCollection(0).Children(0).Children(0).Selected = True
End Sub
Private Sub SelectOneCell()See Also | Classes | SftTree/NET 3.0