Skip to the content.

PromptPlus API:IControlTreeViewMultiSelect

Build Publish License NuGet Downloads

Back to List Api

IControlTreeViewMultiSelect<T>

Namespace: PPlus.Controls

Represents the interface with all Methods of the TreeViewMultiSelect control

public interface IControlTreeViewMultiSelect<T> : IPromptControls<T[]>

Type Parameters

T
type of return

Implements IPromptControls<T[]>

Methods

AddFixedSelect(params T[])

Fixed select (immutable) items in list

IControlTreeViewMultiSelect<T> AddFixedSelect(params T[] values)

Parameters

values T[]
list with items selected

Returns

IControlTreeViewMultiSelect<T>

AddNode(T)

Add a node

IControlTreeViewMultiSelect<T> AddNode(T value)

Parameters

value T
value node

Returns

IControlTreeViewMultiSelect<T>

AddNode(T, T)

Add a node in parent node

IControlTreeViewMultiSelect<T> AddNode(T Parent, T value)

Parameters

Parent T
value parent

value T
value node

Returns

IControlTreeViewMultiSelect<T>

AfterCollapsed(Action<T>)

Action to execute after Collapsed

IControlTreeViewMultiSelect<T> AfterCollapsed(Action<T> value)

Parameters

value Action<T>
The action

Returns

IControlTreeViewMultiSelect<T>

AfterExpanded(Action<T>)

Action to execute after Expanded

IControlTreeViewMultiSelect<T> AfterExpanded(Action<T> value)

Parameters

value Action<T>
The action

Returns

IControlTreeViewMultiSelect<T>

BeforeCollapsed(Action<T>)

Action to execute before Collapsed

IControlTreeViewMultiSelect<T> BeforeCollapsed(Action<T> value)

Parameters

value Action<T>
The action

Returns

IControlTreeViewMultiSelect<T>

BeforeExpanded(Action<T>)

Action to execute before Expanded

IControlTreeViewMultiSelect<T> BeforeExpanded(Action<T> value)

Parameters

value Action<T>
The action

Returns

IControlTreeViewMultiSelect<T>

Config(Action<IPromptConfig>)

Custom config the control.

IControlTreeViewMultiSelect<T> Config(Action<IPromptConfig> context)

Parameters

context Action<IPromptConfig>
action to apply changes. IPromptConfig

Returns

IControlTreeViewMultiSelect<T>

Default(T)

Default item node selected when started

IControlTreeViewMultiSelect<T> Default(T value)

Parameters

value T
value node

Returns

IControlTreeViewMultiSelect<T>

ExpandAll(Boolean)

Start treeview with all childs Expanded. Default false

IControlTreeViewMultiSelect<T> ExpandAll(bool value)

Parameters

value Boolean
Start treeview with all childs Expanded

Returns

IControlTreeViewMultiSelect<T>

FilterType(FilterMode)

Filter strategy for filter items in colletion
Default value is FilterMode.Contains

IControlTreeViewMultiSelect<T> FilterType(FilterMode value)

Parameters

value FilterMode
Filter Mode

Returns

IControlTreeViewMultiSelect<T>

HotKeyFullPath(HotKey)

Overwrite a HotKey toggle current name node parent to FullPath. Default value is ‘F2’

IControlTreeViewMultiSelect<T> HotKeyFullPath(HotKey value)

Parameters

value HotKey
The HotKey to toggle current name node to FullPath

Returns

IControlTreeViewMultiSelect<T>

HotKeyToggleExpand(HotKey)

Overwrite a HotKey expand/Collap current node selected. Default value is ‘F3’

IControlTreeViewMultiSelect<T> HotKeyToggleExpand(HotKey value)

Parameters

value HotKey
The HotKey to expand/Collapse current node selected

Returns

IControlTreeViewMultiSelect<T>

HotKeyToggleExpandAll(HotKey)

Overwrite a HotKey expand/Collap all nodes. Default value is ‘F4’

IControlTreeViewMultiSelect<T> HotKeyToggleExpandAll(HotKey value)

Parameters

value HotKey
The HotKey to expand/Collap all nodes

Returns

IControlTreeViewMultiSelect<T>

Interaction(IEnumerable<T>, Action<IControlTreeViewMultiSelect<T>, T>)

Execute a action foreach item of colletion passed as a parameter

IControlTreeViewMultiSelect<T> Interaction(IEnumerable<T> values, Action<IControlTreeViewMultiSelect<T>, T> action)

Parameters

values IEnumerable<T>
Colletion for interaction

action Action<IControlTreeViewMultiSelect<T>, T>
Action to execute

Returns

IControlTreeViewMultiSelect<T>

PageSize(Int32)

Set max.item view per page.Default value for this control is 10.

IControlTreeViewMultiSelect<T> PageSize(int value)

Parameters

value Int32
Number of Max.items

Returns

IControlTreeViewMultiSelect<T>

Range(Int32, Nullable<Int32>)

Defines a minimum and maximum (optional) range of items selected in the tree

IControlTreeViewMultiSelect<T> Range(int minvalue, Nullable<Int32> maxvalue)

Parameters

minvalue Int32
Minimum number of items

maxvalue Nullable<Int32>
Maximum number of items

Returns

IControlTreeViewMultiSelect<T>

RootNode(T, Func<T, String>, Func<T, Boolean>, Func<T, Boolean>, Nullable<Char>, Func<T, String>)

Set root node

IControlTreeViewMultiSelect<T> RootNode(T value, Func<T, String> textnode, 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

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

IControlTreeViewMultiSelect<T>

SelectAll(Func<T, Boolean>)

Select all items that satisfy the selection function

IControlTreeViewMultiSelect<T> SelectAll(Func<T, Boolean> validselect)

Parameters

validselect Func<T, Boolean>
the function

Returns

IControlTreeViewMultiSelect<T>

ShowCurrentNode(Boolean)

Append name node parent on description. Default true

IControlTreeViewMultiSelect<T> ShowCurrentNode(bool value)

Parameters

value Boolean
true Append current name node parent on description, not append

Returns

IControlTreeViewMultiSelect<T>

ShowExpand(Boolean)

Show expand SymbolType.Expanded. Default is true

IControlTreeViewMultiSelect<T> ShowExpand(bool value)

Parameters

value Boolean
true Show Expanded SymbolType, otherwise ‘no’

Returns

IControlTreeViewMultiSelect<T>

ShowLines(Boolean)

Show lines of level. Default is true

IControlTreeViewMultiSelect<T> ShowLines(bool value)

Parameters

value Boolean
true Show lines, otherwise ‘no’

Returns

IControlTreeViewMultiSelect<T>

Styles(TreeViewStyles, Style)

Overwrite Style

IControlTreeViewMultiSelect<T> Styles(TreeViewStyles content, Style value)

Parameters

content TreeViewStyles
content Styles. TreeViewStyles

value Style
Style

Returns

IControlTreeViewMultiSelect<T>


Back to List Api