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