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