PromptPlus API:IControlBrowserSelect
IControlBrowserSelect
Namespace: PPlus.Controls
Represents the interface with all Methods of the Browser control
public interface IControlBrowserSelect : IPromptControls<ItemBrowser>
Implements IPromptControls<ItemBrowser>
Methods
AcceptHiddenAttributes(Boolean)
Accept hidden folder and files in browser. Default is false
IControlBrowserSelect AcceptHiddenAttributes(bool value)
Parameters
value
Boolean
true accept hidden folder and files, otherwise ‘no’
Returns
AcceptSystemAttributes(Boolean)
Accept system folder and files in browser. Default is false
IControlBrowserSelect AcceptSystemAttributes(bool value)
Parameters
value
Boolean
true accept system folder and files, otherwise ‘no’
Returns
AfterCollapsed(Action<ItemBrowser>)
Action to execute after Collapsed
IControlBrowserSelect AfterCollapsed(Action<ItemBrowser> value)
Parameters
value
Action<ItemBrowser>
The action
Returns
AfterExpanded(Action<ItemBrowser>)
Action to execute after Expanded
IControlBrowserSelect AfterExpanded(Action<ItemBrowser> value)
Parameters
value
Action<ItemBrowser>
The action
Returns
BeforeCollapsed(Action<ItemBrowser>)
Action to execute before Collapsed
IControlBrowserSelect BeforeCollapsed(Action<ItemBrowser> value)
Parameters
value
Action<ItemBrowser>
The action
Returns
BeforeExpanded(Action<ItemBrowser>)
Action to execute before Expanded
IControlBrowserSelect BeforeExpanded(Action<ItemBrowser> value)
Parameters
value
Action<ItemBrowser>
The action
Returns
Config(Action<IPromptConfig>)
Custom config the control.
IControlBrowserSelect Config(Action<IPromptConfig> context)
Parameters
context
Action<IPromptConfig>
action to apply changes. IPromptConfig
Returns
Default(String)
Default item (fullpath) selected when started
IControlBrowserSelect Default(string value)
Parameters
value
String
fullpath
Returns
DisabledRecursiveExpand(Boolean)
Disabled ExpandAll Feature. Only item in Top-level are expanded. Default false
DisabledRecursiveExpand cannot be used when Root setted with parameter expandall = true
IControlBrowserSelect DisabledRecursiveExpand(bool value)
Parameters
value
Boolean
Disabled ExpandAll Feature
Returns
FilterType(FilterMode)
Filter strategy for filter items in colletion
Default value is FilterMode.Contains
IControlBrowserSelect FilterType(FilterMode value)
Parameters
value
FilterMode
Filter Mode
Returns
HotKeyFullPath(HotKey)
Overwrite a HotKey toggle current name folder to FullPath. Default value is ‘F2’
IControlBrowserSelect HotKeyFullPath(HotKey value)
Parameters
value
HotKey
The HotKey to oggle current name folder to FullPath
Returns
HotKeyToggleExpand(HotKey)
Overwrite a HotKey expand/Collap current folder selected. Default value is ‘F3’
IControlBrowserSelect HotKeyToggleExpand(HotKey value)
Parameters
value
HotKey
The HotKey to expand/Collapse current folder selected
Returns
HotKeyToggleExpandAll(HotKey)
Overwrite a HotKey expand/Collap all folders. Default value is ‘F4’
IControlBrowserSelect HotKeyToggleExpandAll(HotKey value)
Parameters
value
HotKey
The HotKey to expand/Collap all folders
Returns
NoSpinner(Boolean)
Not show Spinner. default value is false (SpinnersType.Ascii)
IControlBrowserSelect NoSpinner(bool value)
Parameters
value
Boolean
Returns
OnlyFolders(Boolean)
Load only Folders on browser. Default is false
IControlBrowserSelect OnlyFolders(bool value)
Parameters
value
Boolean
true only Folders, otherwise Folders and files
Returns
PageSize(Int32)
Set max.item view per page.
Default value : 10.The value must be greater than or equal to 1
IControlBrowserSelect PageSize(int value)
Parameters
value
Int32
Number of Max.items
Returns
Root(String, Boolean, Func<ItemBrowser, Boolean>, Func<ItemBrowser, Boolean>)
Set folder root to browser
parameter expandall = true cannot be used with DisabledRecursiveExpand
IControlBrowserSelect Root(string value, bool expandall, Func<ItemBrowser, Boolean> validselect, Func<ItemBrowser, Boolean> setdisabled)
Parameters
value
String
full path folder root
expandall
Boolean
true expand all folder, otherwise ‘no’. Expandall = true cannot be used with DisabledRecursiveExpand
validselect
Func<ItemBrowser, Boolean>
Accept select item that satisfy the function
setdisabled
Func<ItemBrowser, Boolean>
Disabled all items that satisfy the disabled function
Returns
SearchFilePattern(String)
Search file pattern. Default is ‘*’
IControlBrowserSelect SearchFilePattern(string value)
Parameters
value
String
Search pattern
Returns
SearchFolderPattern(String)
Search folder pattern. Default is ‘*’
IControlBrowserSelect SearchFolderPattern(string value)
Parameters
value
String
Search pattern
Returns
ShowCurrentFolder(Boolean)
Append name current folder on description. Default is true.
IControlBrowserSelect ShowCurrentFolder(bool value)
Parameters
value
Boolean
true Append current name folder on description, not append
Returns
ShowExpand(Boolean)
Show expand SymbolType.Expanded. Default is true
IControlBrowserSelect ShowExpand(bool value)
Parameters
value
Boolean
true Show Expanded SymbolType, otherwise ‘no’
Returns
ShowLines(Boolean)
Show lines of level. Default is true
IControlBrowserSelect ShowLines(bool value)
Parameters
value
Boolean
true Show lines, otherwise ‘no’
Returns
ShowSize(Boolean)
Show folder and file size in browser. Default is true
IControlBrowserSelect ShowSize(bool value)
Parameters
value
Boolean
true Show size, otherwise ‘no’
Returns
Spinner(SpinnersType, Nullable<Int32>, IEnumerable<String>)
Overwrite SpinnersType. Default value is SpinnersType.Ascii
When use custom spinner, if has unicode values console does not support it, the rendering may not be as expected
IControlBrowserSelect Spinner(SpinnersType spinnersType, Nullable<Int32> speedAnimation, IEnumerable<String> customspinner)
Parameters
spinnersType
SpinnersType
The SpinnersType
speedAnimation
Nullable<Int32>
Number of mileseconds foreach iteration of spinner. Valid only to SpinnersType.custom, otherwise will be ignored
customspinner
IEnumerable<String>
IEnumerable values for custom spinner. Valid only to SpinnersType.custom, otherwise will be ignored
Returns
Styles(BrowserStyles, Style)
Overwrite Styles
IControlBrowserSelect Styles(BrowserStyles content, Style value)
Parameters
content
BrowserStyles
content Styles. BrowserStyles