API ReferenceSandbox.UI

DockItemclass

A registered dock panel. Its content survives tab changes, closing and moving between hosts.

object→DockItem
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.UI.DockItem

Properties5

Showing 5 properties

public bool Sandbox.UI.DockItem.CanClose { get; set; }PUBLICGETSET

Whether the panel can be closed.

Returns:bool—

public Sandbox.UI.Panel Sandbox.UI.DockItem.Content { get; set; }PUBLICGETSET

The panel owned by the host, or null until a factory registration is opened.

Returns:Panel—

public string Sandbox.UI.DockItem.Icon { get; set; }PUBLICGETSET

Optional Material icon shown before the title.

Returns:string—

public string Sandbox.UI.DockItem.Id { get; set; }PUBLICGETSET

Stable ID used in saved layouts.

Returns:string—

public string Sandbox.UI.DockItem.Title { get; set; }PUBLICGETSET

Title shown on the tab.

Returns:string—

On this page