콘솔의 가장 큰 창 높이를 얻으려면 코드는 다음과 같습니다 -
예
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