Form.MaximumSize 속성

정의

폼을 조정할 수 있는 최대 크기를 가져옵니다.

public:
 property System::Drawing::Size MaximumSize { System::Drawing::Size get(); void set(System::Drawing::Size value); };
public:
 virtual property System::Drawing::Size MaximumSize { System::Drawing::Size get(); void set(System::Drawing::Size value); };
public System.Drawing.Size MaximumSize { get; set; }
public override System.Drawing.Size MaximumSize { get; set; }
member this.MaximumSize : System.Drawing.Size with get, set
Public Property MaximumSize As Size
Public Overrides Property MaximumSize As Size

속성 값

폼의 최대 크기를 나타내는 Size입니다.

예외

Size 개체 내의 높이 또는 너비 값이 0보다 작은 경우

예제

다음 예제에서는 설정 하는 속성입니다 MaximumSize .

public:
   Form1()
      : Form()
   {
      
      //This call is required by the Windows Form Designer.
      InitializeComponent();
      
      //Set the maximum size, so if user maximizes form, it 
      //will not cover entire desktop.  
      this->MaximumSize = System::Drawing::Size( 500, 500 );
   }
public Form1() : base()
{        

    //This call is required by the Windows Form Designer.
    InitializeComponent();

    //Set the maximum size, so if user maximizes form, it 
    //will not cover entire desktop.  
    this.MaximumSize = new System.Drawing.Size(500, 500);
}
Public Sub New()
    MyBase.New()

    'This call is required by the Windows Form Designer.
    InitializeComponent()

    'Set the maximum size, so if user maximizes form, it 
    'will not cover entire desktop.  
    Me.MaximumSize = New Size(500, 500)


End Sub

설명

이 속성을 사용하면 양식의 크기를 지정된 최대 크기로 제한할 수 있습니다. 여러 창을 동시에 표시할 때 이 기능을 사용하여 단일 창으로 인해 다른 창이 숨겨지지 않도록 할 수 있습니다. 이 속성이 높이가 0이고 너비가 0인 개체로 설정된 Size 경우 폼의 최대 크기는 Windows에서 설정한 한도를 초과하지 않습니다.

적용 대상

추가 정보