उदाहरण 1: अधिकतम विंडो ऊंचाई प्राप्त करना
using System;
public class Demo {
public static void Main(string[] args) {
Console.WriteLine("Console की अधिकतम विंडो ऊंचाई = " + Console.LargestWindowHeight);
}
}
आउटपुट
Console की अधिकतम विंडो ऊंचाई = 58
उदाहरण 2: अधिकतम विंडो चौड़ाई प्राप्त करना
using System;
public class Demo {
public static void Main(string[] args) {
Console.WriteLine("Console की अधिकतम विंडो चौड़ाई = " + Console.LargestWindowWidth);
}
}
आउटपुट
Console की अधिकतम विंडो चौड़ाई = 190