C#-এ কনসোল কার্সরের উপরের অবস্থান (CursorTop) পরিবর্তন করতে Console.CursorTop প্রোপার্টি ব্যবহার করা হয়।
উদাহরণ
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.CursorTop = 20;
Console.WriteLine("\nCursorTop = " + Console.CursorTop);
}
}
আউটপুট
আউটপুট একটি ইমেজ হিসেবে প্রদর্শিত হয়েছে।
