Defines the selection style.
Class: SftTree
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET
public SelectionStyleEnum SelectionStyle { get; set; }
Public Property SelectionStyle As SelectionStyleEnumThe selection style.
The default value is SelectionStyleEnum.SingleItem.
Defines the selection style.
The SftTree.SelectableArea property defines which which areas of items or cells can be clicked by an end user to select the item or cell.
The SftTree.SelectionOutlineStyle property defines the appearance of the selection highlight.
SftTree.SelectionHighlightStyle defines the appearance of a selected item or cell.
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 SftTree Class | Classes | SftTree/NET 3.0