Interface ICopyableControl
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
Implemented by selectable controls that support a configurable copy-to-clipboard shortcut. The owning window consults these members so the copy key can be customized or disabled per control, rather than being a fixed Ctrl+C.
public interface ICopyableControl : ISelectableControl, IWindowControl, IDisposable
- Inherited Members
- Extension Methods
Properties
CopyEnabled
Gets whether the keyboard copy shortcut is enabled for this control.
bool CopyEnabled { get; }
Property Value
CopyKey
Gets the key that triggers a copy (combined with CopyModifiers).
ConsoleKey CopyKey { get; }
Property Value
CopyModifiers
Gets the modifier keys required for the copy shortcut (e.g. Control).
ConsoleModifiers CopyModifiers { get; }
Property Value
Methods
CopySelectionToClipboard()
Copies the current selection (plain text) to the clipboard.
Returns true if something was copied.
bool CopySelectionToClipboard()