Form.MaximumSize Özellik

Tanım

Formun yeniden boyutlandırılabildiği boyut üst sınırını alır.

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

Özellik Değeri

Size Formun en büyük boyutunu temsil eden bir.

Özel durumlar

Nesne içindeki yükseklik veya genişlik Size değerleri sıfırdan küçüktür.

Örnekler

Aşağıdaki örnekte özelliğin ayarlanması gösterilmektedir 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

Açıklamalar

Bu özellik, formun boyutunu belirtilen en büyük boyutla sınırlamanızı sağlar. Tek bir pencerenin diğer pencerelerin gizlenmesine neden olmamasını sağlamak için bu özelliği aynı anda birden çok pencere görüntülerken kullanabilirsiniz. Bu özellik 0 yüksekliğe ve 0 genişliğe sahip bir Size nesneye ayarlanırsa, form Windows tarafından ayarlanan sınırların ötesinde bir boyuta sahip olmaz.

Şunlara uygulanır

Ayrıca bkz.