Class ToolWindowTemplate
- Namespace
- SharpConsoleUI.Builders
- Assembly
- SharpConsoleUI.dll
A window template for creating tool windows with standard tool panel behavior. Tool windows are typically smaller, positioned to the side, and can be resized and moved.
public sealed class ToolWindowTemplate : WindowTemplate
- Inheritance
-
ToolWindowTemplate
- Inherited Members
Constructors
ToolWindowTemplate(string, Point, Size)
Initializes a new instance of the ToolWindowTemplate class.
public ToolWindowTemplate(string title, Point position, Size size)
Parameters
titlestringThe title text to display in the tool window's title bar.
positionPointThe initial position of the tool window.
sizeSizeThe initial size of the tool window.
Exceptions
- ArgumentNullException
Thrown when
titleis null.
Methods
Configure(WindowBuilder)
Configures the window builder with tool window-specific settings including the specified position and size, with resizing and moving enabled.
public override WindowBuilder Configure(WindowBuilder builder)
Parameters
builderWindowBuilderThe window builder to configure.
Returns
- WindowBuilder
The configured builder instance for continued method chaining.