Skip to content
ConsoleMonster
Class

PanelEntry

ConsoleMonster.Apps.Commander

Namespace
ConsoleMonster.Apps.Commander
Assembly
ConsoleMonster
Modifiers
sealed

One row of a CommanderPanel: a file, a folder or the .. parent row.

Inheritance

  • object
  • PanelEntry

Remarks

Rows are created by a listing and keep their PanelEntry.Id across refreshes. A background folder-size scan may update PanelEntry.Size and PanelEntry.SizeState; everything else is fixed.

Usage

Explore 11 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 6

Methods

public override string ToString() #

Returns a string that represents the current object.

Returns

string A string that represents the current object.

Properties

public string Id { get; } #

Stable row identity: the full path, or PanelEntry.ParentId for the parent row. Marks, the cursor and a grid's selection key on it.

public string Name { get; } #

The name shown in the panel; .. for the parent row.

public string FullPath { get; } #

The full path; for the parent row, the parent folder.

public string Extension { get; } #

The extension without its dot, or empty for folders and names without one.

public bool IsFolder { get; } #

Whether this is a folder (or a link to one).

public bool IsParent { get; } #

Whether this is the .. row.

public bool IsHidden { get; } #

Whether the item is hidden by the platform's rule: the hidden or system attribute on Windows, where a leading dot is just part of the name; a leading dot on macOS and Linux, plus the hidden flag that .NET reports on macOS.

public bool IsReadOnly { get; } #

Whether the item is read-only.

public FileAttributes Attributes { get; } #

The file system attributes when listed.

public DateTime Modified { get; } #

When the item was last modified, in local time.

public long? Size { get; } #

The size in bytes; null for a folder until its size is computed.

public EntrySizeState SizeState { get; } #

Whether the size is known, pending or being computed.

Fields

public const string ParentId #

The identity of the parent row.

Value: ..