TerminalBase 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public ref class TerminalBase abstract : IDisposable, System::CommandLine::Rendering::ITerminal
public abstract class TerminalBase : IDisposable, System.CommandLine.Rendering.ITerminal
type TerminalBase = class
interface ITerminal
interface IConsole
interface IStandardOut
interface IStandardError
interface IStandardIn
interface IDisposable
Public MustInherit Class TerminalBase
Implements IDisposable, ITerminal
- 继承
-
TerminalBase
- 派生
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| TerminalBase(IConsole) | |
属性
| 名称 | 说明 |
|---|---|
| BackgroundColor | |
| Console | |
| CursorLeft | |
| CursorTop | |
| Error | |
| ForegroundColor | |
| IsErrorRedirected | |
| IsInputRedirected | |
| IsOutputRedirected | |
| Out | |
| OutputMode | |
方法
| 名称 | 说明 |
|---|---|
| Clear() | |
| Dispose() | |
| Dispose(Boolean) | |
| GetRegion() | |
| HideCursor() | |
| ResetColor() | |
| SetCursorPosition(Int32, Int32) | |
| ShowCursor() | |
扩展方法
| 名称 | 说明 |
|---|---|
| Append(IConsole, View, OutputMode) | |
| DetectOutputMode(IConsole) | |
| GetTerminal(IConsole, Boolean, OutputMode) | |
| Render(ITerminal, FormattableString, Region) | |
| Render(ITerminal, TextSpan, Region) | |