C# এ কনসোলের কার্সারলেফ্ট পরিবর্তন করতে, 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);
}
} আউটপুট
এটি নিম্নলিখিত আউটপুট −
তৈরি করবে
