c#应用程序写出应用程序 [英] c# application writeline out the application
本文介绍了c#应用程序写出应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我尝试在应用程序窗口中写出一些值。
我的意思是,我想写一些东西,我把光标留在书写标记处。
我该怎么做?
谢谢,Zachinio
Hello,
I try to write some values out the application window.
I mean, I want to write something where I leave the cursor with the writing mark.
How do i do that?
Thanks, Zachinio
推荐答案
因为你在谈论光标(而不是插入符号)我假设你的意思是控制台应用程序。
尝试 Console.SetCursorPosition [ ^ ]方法,或CursorLeft和CursorTop属性:
Since you are talking about the cursor (rather than the caret) I assume you mean a Console application.
Try the Console.SetCursorPosition[^] method, or the CursorLeft and CursorTop properties:
static void Main(string[] args)
{
Console.WriteLine("Hello: Member 10044307306");
Console.CursorLeft = 7;
Console.CursorTop--;
Console.ReadLine();
}
这篇关于c#应用程序写出应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文