Show / Hide Table of Contents

Class FileListBox

Inheritance
object
FileListBox
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Hexa.NET.ImGui.SC
Assembly: SadConsole.Debug.MonoGame.dll
Syntax
public class FileListBox

Constructors

FileListBox(string)

Declaration
public FileListBox(string rootFolder)
Parameters
Type Name Description
string rootFolder

FileListBox(string, string)

Declaration
public FileListBox(string rootFolder, string currentFolder)
Parameters
Type Name Description
string rootFolder
string currentFolder

Properties

AllowNavigation

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

ColoredExtensions

Declaration
public Dictionary<string, Color> ColoredExtensions { get; set; }
Property Value
Type Description
Dictionary<string, Color>

CurrentDirectory

Declaration
public DirectoryInfo CurrentDirectory { get; }
Property Value
Type Description
DirectoryInfo

DirectoryColor

Declaration
public Color DirectoryColor { get; set; }
Property Value
Type Description
Color

DoubleClickToSelect

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

FileColor

Declaration
public Color FileColor { get; set; }
Property Value
Type Description
Color

HighlightedItem

Declaration
public FileSystemInfo? HighlightedItem { get; set; }
Property Value
Type Description
FileSystemInfo

IsHighlightedItemDirectory

Declaration
public bool IsHighlightedItemDirectory { get; }
Property Value
Type Description
bool

IsSelectedItemDirectory

Declaration
public bool IsSelectedItemDirectory { get; }
Property Value
Type Description
bool

SearchPattern

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

SelectedItem

Declaration
public FileSystemInfo? SelectedItem { get; set; }
Property Value
Type Description
FileSystemInfo

ShowDirectories

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

ShowFiles

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

UseEvents

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

Methods

Begin(string)

Declaration
public void Begin(string id)
Parameters
Type Name Description
string id

Begin(string, Vector2, ImGuiChildFlags, ImGuiWindowFlags)

Declaration
public void Begin(string id, Vector2 size, ImGuiChildFlags childFlags = ImGuiChildFlags.None, ImGuiWindowFlags windowFlags = ImGuiWindowFlags.None)
Parameters
Type Name Description
string id
Vector2 size
ImGuiChildFlags childFlags
ImGuiWindowFlags windowFlags

Draw()

Draws the list box.

Declaration
public void Draw()

Draw(out bool, out bool)

Draws the list box.

Declaration
public bool Draw(out bool itemSelected, out bool itemHighlighted)
Parameters
Type Name Description
bool itemSelected
bool itemHighlighted

True when an item is single-clicked and DoubleClickToSelect is true.

Returns
Type Description
bool

True when an item is selected or highlighted.

End()

Declaration
public void End()

Events

ChangeDirectory

Declaration
public event EventHandler? ChangeDirectory
Event Type
Type Description
EventHandler

ItemHighlighted

Declaration
public event EventHandler? ItemHighlighted
Event Type
Type Description
EventHandler

ItemSelected

Declaration
public event EventHandler? ItemSelected
Event Type
Type Description
EventHandler

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX