【问题标题】:How to clear the entire console window?如何清除整个控制台窗口?
【发布时间】:2011-09-08 10:56:31
【问题描述】:

我正在制作控制台窗口 RPG,但在清除整个控制台窗口时遇到问题。有没有办法让我用一个命令清除整个控制台窗口?

【问题讨论】:

    标签: c# console window


    【解决方案1】:

    你可以使用Clear()方法:

    Console.Clear();
    

    【讨论】:

    • 我讨厌微软构建这些神秘的 API 的方式,这使得很难找到你需要的命令!
    • 使用 Visual Studio 处理 @James Gaunt
    猜你喜欢
    • 1970-01-01
    • 2022-01-01
    • 2021-12-10
    • 2011-02-28
    相关资源
    最近更新 更多