C# में कंसोल के CursorLeft को बदलने के लिए, Console.CursorLeft प्रॉपर्टी का उपयोग करें।
उदाहरण
आइए एक उदाहरण देखें -
using System;
class Demo {
public static void Main (string[] args) {
Console.BackgroundColor = ConsoleColor.Blue;
Console.WriteLine("Background color changed = "+Console.BackgroundColor);
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine("\nForeground color changed = "+Console.ForegroundColor);
Console.CursorLeft = 30;
Console.Write("CursorLeft position: "+Console.CursorLeft);
}
} आउटपुट
यह निम्नलिखित आउटपुट देगा -
