Class FileListBox
Assembly: SadConsole.Debug.MonoGame.dll
Syntax
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
ColoredExtensions
Declaration
public Dictionary<string, Color> ColoredExtensions { get; set; }
Property Value
CurrentDirectory
Declaration
public DirectoryInfo CurrentDirectory { get; }
Property Value
DirectoryColor
Declaration
public Color DirectoryColor { get; set; }
Property Value
DoubleClickToSelect
Declaration
public bool DoubleClickToSelect { get; set; }
Property Value
FileColor
Declaration
public Color FileColor { get; set; }
Property Value
HighlightedItem
Declaration
public FileSystemInfo? HighlightedItem { get; set; }
Property Value
IsHighlightedItemDirectory
Declaration
public bool IsHighlightedItemDirectory { get; }
Property Value
IsSelectedItemDirectory
Declaration
public bool IsSelectedItemDirectory { get; }
Property Value
SearchPattern
Declaration
public string SearchPattern { get; set; }
Property Value
SelectedItem
Declaration
public FileSystemInfo? SelectedItem { get; set; }
Property Value
ShowDirectories
Declaration
public bool ShowDirectories { get; set; }
Property Value
ShowFiles
Declaration
public bool ShowFiles { get; set; }
Property Value
UseEvents
Declaration
public bool UseEvents { get; set; }
Property Value
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()
Declaration
Draw(out bool, out bool)
Declaration
public bool Draw(out bool itemSelected, out bool itemHighlighted)
Parameters
Returns
| Type |
Description |
| bool |
True when an item is selected or highlighted.
|
End()
Declaration
Events
ChangeDirectory
Declaration
public event EventHandler? ChangeDirectory
Event Type
ItemHighlighted
Declaration
public event EventHandler? ItemHighlighted
Event Type
ItemSelected
Declaration
public event EventHandler? ItemSelected
Event Type
Extension Methods