Class ContentFileExplorer
A file explorer used to display editor content files.
Inheritance
Implements
Inherited Members
Namespace: Gorgon.Editor.UI.Controls
Assembly: Gorgon.Editor.API.dll
Syntax
public class ContentFileExplorer : EditorBaseControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Constructors
| Edit this page View SourceContentFileExplorer()
Initializes a new instance of the ContentFileExplorer class.
Declaration
public ContentFileExplorer()
Properties
| Edit this page View SourceCurrentDirectory
Property to return the current directory.
Declaration
[Browsable(false)]
public string CurrentDirectory { get; }
Property Value
Type | Description |
---|---|
string |
Remarks
This will only return a value if MultiSelect is false.
Entries
Property to set or return the list of entries to display.
Declaration
[Browsable(false)]
public IReadOnlyList<ContentFileExplorerDirectoryEntry> Entries { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyList<ContentFileExplorerDirectoryEntry> |
FileColumnText
Property to set or return the text to display in the file column header.
Declaration
[Browsable(true)]
public string FileColumnText { get; set; }
Property Value
Type | Description |
---|---|
string |
MultiSelect
Property to set or return whether to use single selection, or multi-selection.
Declaration
[Browsable(true)]
public bool MultiSelect { get; set; }
Property Value
Type | Description |
---|---|
bool |
ShowSearch
Property to set or return whether search is available or not.
Declaration
[Browsable(true)]
public bool ShowSearch { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceDispose(bool)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true if managed resources should be disposed; otherwise, false. |
Overrides
| Edit this page View SourceOnLoad(EventArgs)
Raises the Load event.
Declaration
protected override void OnLoad(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
EventArgs | e | An EventArgs that contains the event data. |
Overrides
| Edit this page View SourceOnSearch(GorgonSearchEventArgs)
Function to send the search event.
Declaration
protected virtual void OnSearch(GorgonSearchEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GorgonSearchEventArgs | e | The arguments for the event. |
Events
| Edit this page View SourceFileEntriesFocused
Event triggered when the files are focused/highlighted on the file list.
Declaration
public event EventHandler<ContentFileEntriesFocusedArgs> FileEntriesFocused
Event Type
Type | Description |
---|---|
EventHandler<ContentFileEntriesFocusedArgs> |
FileEntrySelected
Event triggered when a file entry is selected.
Declaration
public event EventHandler<ContentFileEntrySelectedEventArgs> FileEntrySelected
Event Type
Type | Description |
---|---|
EventHandler<ContentFileEntrySelectedEventArgs> |
FileEntryUnselected
Event tiggered when a file entry is unselected.
Declaration
public event EventHandler<ContentFileEntrySelectedEventArgs> FileEntryUnselected
Event Type
Type | Description |
---|---|
EventHandler<ContentFileEntrySelectedEventArgs> |
Search
Event triggered when a search term is entered into the search box.
Declaration
public event EventHandler<GorgonSearchEventArgs> Search
Event Type
Type | Description |
---|---|
EventHandler<GorgonSearchEventArgs> |