RadioButton.Appearance Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee wordt een waarde opgehaald of ingesteld die het uiterlijk van de RadioButtonwaarde bepaalt.
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
Waarde van eigenschap
Een van de Appearance waarden. De standaardwaarde is Normal.
Uitzonderingen
De toegewezen waarde is geen van de Appearance waarden.
Voorbeelden
Het volgende codevoorbeeld maakt en initialiseert een RadioButton, geeft het het uiterlijk van een wisselknop, stelt de eigenschap falseervan in AutoCheck en voegt deze toe aan een Form.
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
Opmerkingen
Als de Appearance waarde is ingesteld op Normal, wordt het RadioButton besturingselement getekend met een cirkelvormig selectievakje. Als de waarde is ingesteld Buttonop, wordt de RadioButton waarde getekend als een besturingselement dat kan worden in- of uitgeschakeld. Elk type kan tekst, een afbeelding of beide weergeven.