FileListBox Class
Definition
Section titled “Definition”public class FileListBoxInheritance object
Constructors
Section titled “Constructors”FileListBox(string)
Section titled “FileListBox(string)”public FileListBox(string rootFolder)Parameters
Section titled “Parameters”rootFolder string
FileListBox(string, string)
Section titled “FileListBox(string, string)”public FileListBox(string rootFolder, string currentFolder)Parameters
Section titled “Parameters”rootFolder string
currentFolder string
Properties
Section titled “Properties”AllowNavigation
Section titled “AllowNavigation”public bool AllowNavigation { get; set; }ShowDirectories
Section titled “ShowDirectories”public bool ShowDirectories { get; set; }ShowFiles
Section titled “ShowFiles”public bool ShowFiles { get; set; }DoubleClickToSelect
Section titled “DoubleClickToSelect”public bool DoubleClickToSelect { get; set; }DirectoryColor
Section titled “DirectoryColor”public Color DirectoryColor { get; set; }FileColor
Section titled “FileColor”public Color FileColor { get; set; }SearchPattern
Section titled “SearchPattern”public string SearchPattern { get; set; }ColoredExtensions
Section titled “ColoredExtensions”public Dictionary<string, Color> ColoredExtensions { get; set; }UseEvents
Section titled “UseEvents”public bool UseEvents { get; set; }SelectedItem
Section titled “SelectedItem”public FileSystemInfo? SelectedItem { get; set; }IsSelectedItemDirectory
Section titled “IsSelectedItemDirectory”public bool IsSelectedItemDirectory { get; }HighlightedItem
Section titled “HighlightedItem”public FileSystemInfo? HighlightedItem { get; set; }IsHighlightedItemDirectory
Section titled “IsHighlightedItemDirectory”public bool IsHighlightedItemDirectory { get; }CurrentDirectory
Section titled “CurrentDirectory”public DirectoryInfo CurrentDirectory { get; }Methods
Section titled “Methods”Draw()
Section titled “Draw()”Draws the list box.
public void Draw()Begin(string)
Section titled “Begin(string)”public void Begin(string id)Parameters
Section titled “Parameters”id string
Begin(string, Vector2, ImGuiChildFlags, ImGuiWindowFlags)
Section titled “Begin(string, Vector2, ImGuiChildFlags, ImGuiWindowFlags)”public void Begin(string id, Vector2 size, ImGuiChildFlags childFlags = ImGuiChildFlags.None, ImGuiWindowFlags windowFlags = ImGuiWindowFlags.None)Parameters
Section titled “Parameters”id string
size Vector2
childFlags Hexa.NET.ImGui.ImGuiChildFlags
windowFlags Hexa.NET.ImGui.ImGuiWindowFlags
public void End()Draw(out bool, out bool)
Section titled “Draw(out bool, out bool)”Draws the list box.
public bool Draw(out bool itemSelected, out bool itemHighlighted)Parameters
Section titled “Parameters”itemSelected bool
itemHighlighted bool
True when an item is single-clicked and DoubleClickToSelect is true.
Returns
Section titled “Returns”bool
True when an item is selected or highlighted.
Events
Section titled “Events”ItemHighlighted
Section titled “ItemHighlighted”public event EventHandler? ItemHighlightedEvent Type
Section titled “Event Type”ItemSelected
Section titled “ItemSelected”public event EventHandler? ItemSelectedEvent Type
Section titled “Event Type”ChangeDirectory
Section titled “ChangeDirectory”public event EventHandler? ChangeDirectory