कंसोल की सबसे बड़ी विंडो ऊंचाई प्राप्त करने के लिए, कोड इस प्रकार है -
उदाहरण
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