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);
}
}
আউটপুট
আউটপুট একটি ইমেজ হিসেবে প্রদর্শিত হয়েছে।
