BoundsSpecified Sabit listesi
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Denetimin boyutunu ve konumunu tanımlarken kullanılacak denetimin sınırlarını belirtir.
Bu sabit listesi, üyeleri için bit düzeyinde karşılaştırmayı destekler.
public enum class BoundsSpecified
[System.Flags]
public enum BoundsSpecified
[<System.Flags>]
type BoundsSpecified =
Public Enum BoundsSpecified
- Devralma
- Öznitelikler
Name | Değer | Description |
---|---|---|
All | 15 | hem hem Size de özellik değerlerinin Location tanımlandığını belirtir. |
Height | 8 | Denetimin yüksekliğinin tanımlandığını belirtir. |
Location | 3 | Denetimin hem hem Y de X koordinatlarının tanımlandığını belirtir. |
None | 0 | Hiçbir sınır belirtilmedi. |
Size | 12 | Denetimin hem ve WidthHeight özellik değerlerinin tanımlandığını belirtir. |
Width | 4 | Denetimin genişliğinin tanımlandığını belirtir. |
X | 1 | Denetimin sol kenarının tanımlandığını belirtir. |
Y | 2 | Denetimin üst kenarının tanımlandığını belirtir. |
private:
void MyForm_Layout( Object^ /*sender*/, System::Windows::Forms::LayoutEventArgs^ /*e*/ )
{
// Center the Form on the user's screen everytime it requires a Layout.
this->SetBounds( (Screen::GetBounds( this ).Width / 2) - (this->Width / 2), (Screen::GetBounds( this ).Height / 2) - (this->Height / 2), this->Width, this->Height, BoundsSpecified::Location );
}
private void MyForm_Layout(object sender, System.Windows.Forms.LayoutEventArgs e)
{
// Center the Form on the user's screen everytime it requires a Layout.
this.SetBounds((Screen.GetBounds(this).Width/2) - (this.Width/2),
(Screen.GetBounds(this).Height/2) - (this.Height/2),
this.Width, this.Height, BoundsSpecified.Location);
}
Private Sub MyForm_Layout(ByVal sender As Object, _
ByVal e As System.Windows.Forms.LayoutEventArgs) Handles MyBase.Layout
' Center the Form on the user's screen everytime it requires a Layout.
Me.SetBounds((System.Windows.Forms.Screen.GetBounds(Me).Width / 2) - (Me.Width / 2), _
(System.Windows.Forms.Screen.GetBounds(Me).Height / 2) - (Me.Height / 2), _
Me.Width, Me.Height, System.Windows.Forms.BoundsSpecified.Location)
End Sub
sınıfının ve SetBounds yöntemlerini çağırırken SetBoundsCore bu numaralandırmanın üyelerini Control kullanın.
Ürün | Sürümler |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET geri bildirimi
.NET, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: