কনসোলের সবচেয়ে বড় উইন্ডোর উচ্চতা পেতে, কোডটি নিম্নরূপ -
উদাহরণ
using System;
public class Demo{
public static void Main(string[] args){
Console.WriteLine("Largest Window Height of the Console = "+Console.LargestWindowHeight);
}
} আউটপুট
এটি নিম্নলিখিত আউটপুট −
তৈরি করবেLargest Window Height of the Console = 58
উদাহরণ
কনসোলের বৃহত্তম উইন্ডো প্রস্থ পেতে, কোডটি নিম্নরূপ -
using System;
public class Demo{
public static void Main(string[] args){
Console.WriteLine("Largest Window Width of the Console = "+Console.LargestWindowWidth);
}
} আউটপুট
এটি নিম্নলিখিত আউটপুট −
তৈরি করবেLargest Window Width of the Console = 190