PromptPlus API:IControlTreeViewSelect
IControlTreeViewSelect<T>
Namespace: PPlus.Controls
Represents the interface with all Methods of the TreeView control
public interface IControlTreeViewSelect<T> : IPromptControls<T>
Type Parameters
T
type of return
Implements IPromptControls<T>
Methods
AddNode(T)
Add a node
IControlTreeViewSelect<T> AddNode(T value)
Parameters
value
T
value node
Returns
AddNode(T, T)
Add a node in parent node
IControlTreeViewSelect<T> AddNode(T Parent, T value)
Parameters
Parent
T
value parent
value
T
value node
Returns
AfterCollapsed(Action<T>)
Action to execute after Collapsed
IControlTreeViewSelect<T> AfterCollapsed(Action<T> value)
Parameters
value
Action<T>
The action
Returns
AfterExpanded(Action<T>)
Action to execute after Expanded
IControlTreeViewSelect<T> AfterExpanded(Action<T> value)
Parameters
value
Action<T>
The action
Returns
BeforeCollapsed(Action<T>)
Action to execute before Collapsed
IControlTreeViewSelect<T> BeforeCollapsed(Action<T> value)
Parameters
value
Action<T>
The action
Returns
BeforeExpanded(Action<T>)
Action to execute before Expanded
IControlTreeViewSelect<T> BeforeExpanded(Action<T> value)
Parameters
value
Action<T>
The action
Returns
Config(Action<IPromptConfig>)
Custom config the control.
IControlTreeViewSelect<T> Config(Action<IPromptConfig> context)
Parameters
context
Action<IPromptConfig>
action to apply changes. IPromptConfig
Returns
Default(T)
Default item node selected when started
IControlTreeViewSelect<T> Default(T value)
Parameters
value
T
value node
Returns
HotKeyFullPath(HotKey)
Overwrite a HotKey toggle current name node parent to FullPath. Default value is ‘F2’
IControlTreeViewSelect<T> HotKeyFullPath(HotKey value)
Parameters
value
HotKey
The HotKey to toggle current name node to FullPath
Returns
HotKeyToggleExpand(HotKey)
Overwrite a HotKey expand/Collap current node selected. Default value is ‘F3’
IControlTreeViewSelect<T> HotKeyToggleExpand(HotKey value)
Parameters
value
HotKey
The HotKey to expand/Collapse current node selected
Returns
HotKeyToggleExpandAll(HotKey)
Overwrite a HotKey expand/Collap all nodes. Default value is ‘F4’
IControlTreeViewSelect<T> HotKeyToggleExpandAll(HotKey value)
Parameters
value
HotKey
The HotKey to expand/Collap all nodes
Returns
Interaction(IEnumerable<T>, Action<IControlTreeViewSelect<T>, T>)
Execute a action foreach item of colletion passed as a parameter
IControlTreeViewSelect<T> Interaction(IEnumerable<T> values, Action<IControlTreeViewSelect<T>, T> action)
Parameters
values
IEnumerable<T>
Colletion for interaction
action
Action<IControlTreeViewSelect<T>, T>
Action to execute
Returns
PageSize(Int32)
Set max.item view per page.
Default value : 10.The value must be greater than or equal to 1
IControlTreeViewSelect<T> PageSize(int value)
Parameters
value
Int32
Number of Max.items
Returns
RootNode(T, Func<T, String>, Boolean, Func<T, Boolean>, Func<T, Boolean>, Nullable<Char>, Func<T, String>)
Set root node
IControlTreeViewSelect<T> RootNode(T value, Func<T, String> textnode, bool expandall, Func<T, Boolean> validselect, Func<T, Boolean> setdisabled, Nullable<Char> separatePath, Func<T, String> uniquenode)
Parameters
value
T
value node
textnode
Func<T, String>
function to show text in node
expandall
Boolean
true expand all nodes, otherwise ‘no’
validselect
Func<T, Boolean>
Select all items that satisfy the selection function
setdisabled
Func<T, Boolean>
Disabled all items that satisfy the disabled function
separatePath
Nullable<Char>
Separate path nodes. Default value is ‘/’
uniquenode
Func<T, String>
function to return unique identify node
Returns
ShowCurrentNode(Boolean)
Append name node parent on description
IControlTreeViewSelect<T> ShowCurrentNode(bool value)
Parameters
value
Boolean
true Append current name node parent on description, not append
Returns
ShowExpand(Boolean)
Show expand SymbolType.Expanded. Default is true
IControlTreeViewSelect<T> ShowExpand(bool value)
Parameters
value
Boolean
true Show Expanded SymbolType, otherwise ‘no’
Returns
ShowLines(Boolean)
Show lines of level. Default is true
IControlTreeViewSelect<T> ShowLines(bool value)
Parameters
value
Boolean
true Show lines, otherwise ‘no’
Returns
Styles(TreeViewStyles, Style)
Overwrite Style
IControlTreeViewSelect<T> Styles(TreeViewStyles content, Style value)
Parameters
content
TreeViewStyles
content Styles. TreeViewStyles