Show / Hide Table of Contents

Class FileDirectoryListbox

A listbox control that displays the file system.

Inheritance
object
ControlBase
CompositeControl
ListBox
FileDirectoryListbox
Implements
IContainer
IList<ControlBase>
ICollection<ControlBase>
IEnumerable<ControlBase>
IEnumerable
Inherited Members
ListBox._reconfigureScrollBar
ListBox.OnSelectedItemChanged()
ListBox.OnResized()
ListBox.SetupScrollBar(Orientation, int, Point)
ListBox.ScrollToSelectedItem()
ListBox.ProcessKeyboard(Keyboard)
ListBox.OnMouseIn(ControlBase.ControlMouseState)
ListBox.OnLeftMouseClicked(ControlBase.ControlMouseState)
ListBox.GetItemAndIndexUnderMouse(ControlBase.ControlMouseState)
ListBox.SetupScrollBar()
ListBox.ShowHideScrollBar()
ListBox.RefreshThemeStateColors(Colors)
ListBox.UpdateAndRedraw(TimeSpan)
ListBox.IsScrollBarVisible
ListBox.ScrollBar
ListBox.ItemIndexMouseOver
ListBox.VisibleItemsTotal
ListBox.VisibleItemsMax
ListBox.CompareByReference
ListBox.SingleClickItemExecute
ListBox.Items
ListBox.SelectedIndex
ListBox.SelectedItem
ListBox.BorderTheme
ListBox.BorderLineStyle
ListBox.DrawBorder
ListBox.ItemTheme
ListBox.ItemsArea
ListBox.SelectedItemChanged
ListBox.SelectedItemReselected
ListBox.SelectedItemExecuted
CompositeControl.MouseLastHandledByChild
CompositeControl.Controls
CompositeControl.NamedControls
CompositeControl.CreateChildControls()
CompositeControl.IsDirtyEventHandler(bool)
CompositeControl.ProcessMouse(MouseScreenObjectState)
CompositeControl.AddControl(ControlBase)
CompositeControl.RemoveControl(ControlBase)
CompositeControl.Count
CompositeControl.this[int]
ControlBase.MouseState_IsMouseOver
ControlBase.MouseState_EnteredWithButtonDown
ControlBase.MouseState_IsMouseLeftDown
ControlBase.MouseState_IsMouseRightDown
ControlBase.OnUnfocused()
ControlBase.OnFocused()
ControlBase.OnIsDirtyChanged()
ControlBase.LostMouse(MouseScreenObjectState)
ControlBase.OnParentChanged()
ControlBase.OnPositionChanged()
ControlBase.PlaceRelativeTo(ControlBase, Direction.Types, int)
ControlBase.DetermineState()
ControlBase.OnStateChanged(ControlStates, ControlStates)
ControlBase.OnSurfaceChanged(ICellSurface, ICellSurface)
ControlBase.FindThemeFont()
ControlBase.FindThemeColors()
ControlBase.SetThemeColors(Colors)
ControlBase.HasThemeColors()
ControlBase.Resize(int, int)
ControlBase.CreateControlSurface()
ControlBase.OnMouseEnter(ControlBase.ControlMouseState)
ControlBase.OnMouseExit(ControlBase.ControlMouseState)
ControlBase.OnRightMouseClicked(ControlBase.ControlMouseState)
ControlBase.ThemeState
ControlBase.UseKeyboard
ControlBase.UseMouse
ControlBase.CanFocus
ControlBase.CanResize
ControlBase.AlternateFont
ControlBase.Surface
ControlBase.MouseArea
ControlBase.IsMouseButtonStateClean
ControlBase.Position
ControlBase.AbsolutePosition
ControlBase.IsVisible
ControlBase.Tag
ControlBase.TabStop
ControlBase.TabIndex
ControlBase.IsDirty
ControlBase.Name
ControlBase.FocusOnMouseClick
ControlBase.Width
ControlBase.Height
ControlBase.IsFocused
ControlBase.IsEnabled
ControlBase.Bounds
ControlBase.Parent
ControlBase.State
ControlBase.IsDirtyChanged
ControlBase.Focused
ControlBase.Unfocused
ControlBase.PositionChanged
ControlBase.MouseEnter
ControlBase.MouseExit
ControlBase.MouseMove
ControlBase.MouseButtonClicked
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.UI.Controls
Assembly: SadConsole.Extended.dll
Syntax
public class FileDirectoryListbox : ListBox, IContainer, IList<ControlBase>, ICollection<ControlBase>, IEnumerable<ControlBase>, IEnumerable

Constructors

FileDirectoryListbox(int, int)

Creates a new instance of the control and uses FileDirectoryListboxItem as the item theme.

Declaration
public FileDirectoryListbox(int width, int height)
Parameters
Type Name Description
int width

The width of the control.

int height

The height of the control.

FileDirectoryListbox(int, int, ListBoxItemTheme)

Creates a new instance of the control with the specified item theme.

Declaration
public FileDirectoryListbox(int width, int height, ListBoxItemTheme itemTheme)
Parameters
Type Name Description
int width

The width of the control.

int height

The height of the control.

ListBoxItemTheme itemTheme

The theme to use for the items.

Properties

CurrentFolder

The current folder displayed by the listbox.

Declaration
public string? CurrentFolder { get; set; }
Property Value
Type Description
string

FileFilter

A . wildcard filesystem filter. Use

;
to split multiple filters.
Declaration
public string FileFilter { get; set; }
Property Value
Type Description
string

HideNonFilterFiles

When true, only displays files that match FileFilter; otherwise false to display all files.

Declaration
public bool HideNonFilterFiles { get; set; }
Property Value
Type Description
bool

HighlightedExtentions

A list of extensions of files to highlight, separated by a semicolon. The extension is just the name without any wildcards or periods, in lowercase. Example: txt;json;xml.

Declaration
public string? HighlightedExtentions { get; set; }
Property Value
Type Description
string

OnlyRootAndSubDirs

When true, only allows navigation from the root folder of the original value provided to CurrentFolder and below; otherwise false.

Declaration
public bool OnlyRootAndSubDirs { get; set; }
Property Value
Type Description
bool

Methods

OnItemAction()

Navigates a directory if a directory is selected. Raises the SelectedItemExecuted event.

Declaration
protected override void OnItemAction()
Overrides
ListBox.OnItemAction()

Implements

IContainer
IList<T>
ICollection<T>
IEnumerable<T>
IEnumerable

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX