Skip to content

FileListBox Class

C#
public class FileListBox

Inheritance object

C#
public FileListBox(string rootFolder)

rootFolder string

C#
public FileListBox(string rootFolder, string currentFolder)

rootFolder string

currentFolder string

C#
public bool AllowNavigation { get; set; }
C#
public bool ShowDirectories { get; set; }
C#
public bool ShowFiles { get; set; }
C#
public bool DoubleClickToSelect { get; set; }
C#
public Color DirectoryColor { get; set; }
C#
public Color FileColor { get; set; }
C#
public string SearchPattern { get; set; }
C#
public Dictionary<string, Color> ColoredExtensions { get; set; }
C#
public bool UseEvents { get; set; }
C#
public FileSystemInfo? SelectedItem { get; set; }
C#
public bool IsSelectedItemDirectory { get; }
C#
public FileSystemInfo? HighlightedItem { get; set; }
C#
public bool IsHighlightedItemDirectory { get; }
C#
public DirectoryInfo CurrentDirectory { get; }

Draws the list box.

C#
public void Draw()
C#
public void Begin(string id)

id string

Begin(string, Vector2, ImGuiChildFlags, ImGuiWindowFlags)

Section titled “Begin(string, Vector2, ImGuiChildFlags, ImGuiWindowFlags)”
C#
public void Begin(string id, Vector2 size, ImGuiChildFlags childFlags = ImGuiChildFlags.None, ImGuiWindowFlags windowFlags = ImGuiWindowFlags.None)

id string

size Vector2

childFlags Hexa.NET.ImGui.ImGuiChildFlags

windowFlags Hexa.NET.ImGui.ImGuiWindowFlags

C#
public void End()

Draws the list box.

C#
public bool Draw(out bool itemSelected, out bool itemHighlighted)

itemSelected bool

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

bool
True when an item is selected or highlighted.

C#
public event EventHandler? ItemHighlighted

EventHandler

C#
public event EventHandler? ItemSelected

EventHandler

C#
public event EventHandler? ChangeDirectory

EventHandler