CaptionButton Sabit listesi

Tanım

Görüntülenecek resim yazısı düğmesinin türünü belirtir.

public enum class CaptionButton
public enum CaptionButton
type CaptionButton = 
Public Enum CaptionButton
Devralma
CaptionButton

Alanlar

Close 0

Kapat düğmesi.

Help 4

Yardım düğmesi.

Maximize 2

Ekranı Kapla düğmesi.

Minimize 1

Simge Durumuna Küçült düğmesi.

Restore 3

Geri Yükle düğmesi.

Örnekler

Aşağıdaki kod örneğinde yönteminin ve numaralandırmasının CaptionButton kullanımı ControlPaint.DrawCaptionButton gösterilmektedir. Bu örneği çalıştırmak için aşağıdaki kodu Button1 adlı bir Düğme içeren bir forma yapıştırın. Formun Sistem'i içeri aktarması gerekir. Windows. Forms ve System.Drawing ad alanları. Düğmenin Paint olayının bu örnekteki olay işleme yöntemiyle ilişkilendirildiğinden emin olun.

// Handle the Button1 object's Paint Event to create a CaptionButton.
void Button1_Paint( Object^ /*sender*/, PaintEventArgs^ e )
{
   
   // Draw a CaptionButton control using the ClientRectangle 
   // property of Button1. Make the button a Help button 
   // with a normal state.
   ControlPaint::DrawCaptionButton( e->Graphics, Button1->ClientRectangle, CaptionButton::Help, ButtonState::Normal );
}
// Handle the Button1 object's Paint Event to create a CaptionButton.
private void Button1_Paint(object sender, PaintEventArgs e)
{

    // Draw a CaptionButton control using the ClientRectangle 
    // property of Button1. Make the button a Help button 
    // with a normal state.
    ControlPaint.DrawCaptionButton(e.Graphics, Button1.ClientRectangle,
        CaptionButton.Help, ButtonState.Normal);
}
' Handle the Button1 object's Paint Event to create a CaptionButton.
Private Sub Button1_Paint(ByVal sender As Object, _
    ByVal e As PaintEventArgs) Handles Button1.Paint

    ' Draw a CaptionButton control using the ClientRectangle 
    ' property of Button1. Make the button a Help button 
    ' with a normal state.
    ControlPaint.DrawCaptionButton(e.Graphics, Button1.ClientRectangle, _
        CaptionButton.Help, ButtonState.Normal)
End Sub

Açıklamalar

Bu numaralandırma tarafından ControlPaint.DrawCaptionButtonkullanılır.

Resim yazısı düğmeleri, genellikle formun başlık çubuğunun en sağ tarafında bulunan sistem düğmeleridir.

Şunlara uygulanır

Ayrıca bkz.