Aracılığıyla paylaş


RadioButton.Appearance Özellik

Tanım

görünümünü RadioButtonbelirleyen bir değer alır veya ayarlar.

public:
 property System::Windows::Forms::Appearance Appearance { System::Windows::Forms::Appearance get(); void set(System::Windows::Forms::Appearance value); };
public System.Windows.Forms.Appearance Appearance { get; set; }
member this.Appearance : System.Windows.Forms.Appearance with get, set
Public Property Appearance As Appearance

Özellik Değeri

Değerlerden Appearance biri. Varsayılan değer Normal değeridir.

Özel durumlar

Atanan değer değerlerden biri Appearance değildir.

Örnekler

Aşağıdaki kod örneği bir RadioButtonoluşturur ve başlatır, geçiş denetiminin görünümünü verir, özelliğini olarak falseayarlar AutoCheck ve bunu öğesine Formekler.

private void InitializeMyRadioButton()
{
   // Create and initialize a new RadioButton.
   RadioButton radioButton1 = new RadioButton();

   // Make the radio button control appear as a toggle button.
   radioButton1.Appearance = Appearance.Button;

   // Turn off the update of the display on the click of the control.
   radioButton1.AutoCheck = false;

   // Add the radio button to the form.
   Controls.Add(radioButton1);
}
Private Sub InitializeMyRadioButton()
    ' Create and initialize a new RadioButton. 
    Dim radioButton1 As New RadioButton()
       
    ' Make the radio button control appear as a toggle button.
    radioButton1.Appearance = Appearance.Button
       
    ' Turn off the update of the display on the click of the control.
    radioButton1.AutoCheck = False
       
    ' Add the radio button to the form.
    Controls.Add(radioButton1)
End Sub

Açıklamalar

Appearance Değer olarak ayarlanırsaNormalRadioButton, denetim döngüsel bir onay kutusuyla çizilir. Değer olarak ayarlanırsaButtonRadioButton, değeri yukarı veya aşağı durumuna geçirilebilen bir denetim olarak çizilir. Her iki tür de metin, resim veya her ikisini de görüntüleyebilir.

Şunlara uygulanır

Ayrıca bkz.