← Back to Home • Next: Slider Control →
MultiFile paints its output in named regions. Each region is a MultiFileStyles value you can
recolor per control instance.
ℹ️ Styling is per control — there is no global “style all file browsers” API. The only style-related global setting is
PromptPlus.Config.ContrastRatio.
MultiFileStyles regions| Region | What it paints |
|---|---|
Prompt |
The prompt text |
Answer |
The confirmed answer shown after .Run() |
Description |
The description line under the prompt |
Selected |
The focused / selected entry |
UnSelected |
The non-focused entries |
Error |
The error line |
Pagination |
The page indicator |
TaggedInfo |
The checked-count / tagged summary |
Tooltips |
The keyboard-hint line |
Lines |
The tree connector lines |
ExpandSymbol |
The expand / collapse symbol on folders |
FileRoot |
The root folder header |
FileTypeFolder |
Folder entries |
FileTypeFile |
File entries |
FileSize |
The file-size column |
Compared with
FileStyles,MultiFileStylesadds theTaggedInforegion for the checked-count summary.
Use the fluent Styles method. A Style is a foreground color, a background
color, and an Overflow strategy — there is no bold/italic/underline. A bare Color is accepted
as shorthand for a foreground-only style.
using ConsolePlusLibrary;
using PromptPlusLibrary;
PromptPlus.Controls
.MultiFile("Styled browser")
.Root(@"C:\Projects")
.Styles(MultiFileStyles.Prompt, new Style(Color.Yellow, Color.Black))
.Styles(MultiFileStyles.FileTypeFolder, new Style(Color.Cyan, Color.Black))
.Styles(MultiFileStyles.FileTypeFile, new Style(Color.White, Color.Black))
.Styles(MultiFileStyles.FileSize, new Style(Color.Gray, Color.Black))
.Styles(MultiFileStyles.Selected, new Style(Color.Black, Color.Gray))
.Run();
To reuse a theme across browsers, wrap the styling in a helper you call for each control — the library does not broadcast styles for you. See Global Styles for the pattern.
PromptPlus nudges foreground colors that fall below the configured contrast ratio so text stays
readable on any terminal theme. Tune or disable with PromptPlus.Config.ContrastRatio.
Style type, per-control styling, contrastStyle API and OverflowTaggedInfo region)