Skip to the content.

PromptPlus API:IControlBrowserSelect

Build Publish License NuGet Downloads

Back to List Api

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

IControlBrowserSelect

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

IControlBrowserSelect

AfterCollapsed(Action<ItemBrowser>)

Action to execute after Collapsed

IControlBrowserSelect AfterCollapsed(Action<ItemBrowser> value)

Parameters

value Action<ItemBrowser>
The action

Returns

IControlBrowserSelect

AfterExpanded(Action<ItemBrowser>)

Action to execute after Expanded

IControlBrowserSelect AfterExpanded(Action<ItemBrowser> value)

Parameters

value Action<ItemBrowser>
The action

Returns

IControlBrowserSelect

BeforeCollapsed(Action<ItemBrowser>)

Action to execute before Collapsed

IControlBrowserSelect BeforeCollapsed(Action<ItemBrowser> value)

Parameters

value Action<ItemBrowser>
The action

Returns

IControlBrowserSelect

BeforeExpanded(Action<ItemBrowser>)

Action to execute before Expanded

IControlBrowserSelect BeforeExpanded(Action<ItemBrowser> value)

Parameters

value Action<ItemBrowser>
The action

Returns

IControlBrowserSelect

Config(Action<IPromptConfig>)

Custom config the control.

IControlBrowserSelect Config(Action<IPromptConfig> context)

Parameters

context Action<IPromptConfig>
action to apply changes. IPromptConfig

Returns

IControlBrowserSelect

Default(String)

Default item (fullpath) selected when started

IControlBrowserSelect Default(string value)

Parameters

value String
fullpath

Returns

IControlBrowserSelect

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

IControlBrowserSelect

FilterType(FilterMode)

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

IControlBrowserSelect FilterType(FilterMode value)

Parameters

value FilterMode
Filter Mode

Returns

IControlBrowserSelect

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

IControlBrowserSelect

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

IControlBrowserSelect

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

IControlBrowserSelect

NoSpinner(Boolean)

Not show Spinner. default value is false (SpinnersType.Ascii)

IControlBrowserSelect NoSpinner(bool value)

Parameters

value Boolean

Returns

IControlBrowserSelect

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

IControlBrowserSelect

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

IControlBrowserSelect

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

IControlBrowserSelect

SearchFilePattern(String)

Search file pattern. Default is ‘*’

IControlBrowserSelect SearchFilePattern(string value)

Parameters

value String
Search pattern

Returns

IControlBrowserSelect

SearchFolderPattern(String)

Search folder pattern. Default is ‘*’

IControlBrowserSelect SearchFolderPattern(string value)

Parameters

value String
Search pattern

Returns

IControlBrowserSelect

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

IControlBrowserSelect

ShowExpand(Boolean)

Show expand SymbolType.Expanded. Default is true

IControlBrowserSelect ShowExpand(bool value)

Parameters

value Boolean
true Show Expanded SymbolType, otherwise ‘no’

Returns

IControlBrowserSelect

ShowLines(Boolean)

Show lines of level. Default is true

IControlBrowserSelect ShowLines(bool value)

Parameters

value Boolean
true Show lines, otherwise ‘no’

Returns

IControlBrowserSelect

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

IControlBrowserSelect

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

IControlBrowserSelect

Styles(BrowserStyles, Style)

Overwrite Styles

IControlBrowserSelect Styles(BrowserStyles content, Style value)

Parameters

content BrowserStyles
content Styles. BrowserStyles

value Style
Style

Returns

IControlBrowserSelect


Back to List Api