GroupBox.FlatStyle プロパティ
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

Dim instance As GroupBox Dim value As FlatStyle value = instance.FlatStyle instance.FlatStyle = value
/** @property */ public FlatStyle get_FlatStyle () /** @property */ public void set_FlatStyle (FlatStyle value)
FlatStyle 値の 1 つ。既定値は Standard です。


GroupBox と 2 つの RadioButton コントロールをインスタンス化および作成するコード例を次に示します。オプション ボタンはグループ ボックスに追加され、グループ ボックスは Form に追加されます。
Private Sub InitializeMyGroupBox() ' Create and initialize a GroupBox and two RadioButton controls. Dim groupBox1 As New GroupBox() Dim radioButton1 As New RadioButton() Dim radioButton2 As New RadioButton() ' Set the FlatStyle of the GroupBox. groupBox1.FlatStyle = FlatStyle.System ' Add the RadioButtons to the GroupBox. groupBox1.Controls.Add(radioButton1) groupBox1.Controls.Add(radioButton2) ' Add the GroupBox to the Form. Controls.Add(groupBox1) End Sub 'InitializeMyGroupBox
private void InitializeMyGroupBox() { // Create and initialize a GroupBox and two RadioButton controls. GroupBox groupBox1 = new GroupBox(); RadioButton radioButton1 = new RadioButton(); RadioButton radioButton2 = new RadioButton(); // Set the FlatStyle of the GroupBox. groupBox1.FlatStyle = FlatStyle.System; // Add the RadioButtons to the GroupBox. groupBox1.Controls.Add(radioButton1); groupBox1.Controls.Add(radioButton2); // Add the GroupBox to the Form. Controls.Add(groupBox1); }
private: void InitializeMyGroupBox() { // Create and initialize a GroupBox and two RadioButton controls. GroupBox^ groupBox1 = gcnew GroupBox; RadioButton^ radioButton1 = gcnew RadioButton; RadioButton^ radioButton2 = gcnew RadioButton; // Add the RadioButtons to the GroupBox. groupBox1->Controls->Add( radioButton1 ); groupBox1->Controls->Add( radioButton2 ); // Add the GroupBox to the Form. Controls->Add( groupBox1 ); }
private void InitializeMyGroupBox() { // Create and initialize a GroupBox and two RadioButton controls. GroupBox groupBox1 = new GroupBox(); RadioButton radioButton1 = new RadioButton(); RadioButton radioButton2 = new RadioButton(); // Set the FlatStyle of the GroupBox. groupBox1.set_FlatStyle(FlatStyle.System); // Add the RadioButtons to the GroupBox. groupBox1.get_Controls().Add(radioButton1); groupBox1.get_Controls().Add(radioButton2); // Add the GroupBox to the Form. get_Controls().Add(groupBox1); } //InitializeMyGroupBox
function InitializeMyGroupBox(){ // Create and initialize a GroupBox and two RadioButton controls. var groupBox1 : GroupBox = new GroupBox() var radioButton1 : RadioButton = new RadioButton() var radioButton2 : RadioButton = new RadioButton() // Set the FlatStyle of the GroupBox. groupBox1.FlatStyle = FlatStyle.System // Add the RadioButtons to the GroupBox. groupBox1.Controls.Add(radioButton1) groupBox1.Controls.Add(radioButton2) // Add the GroupBox to the Form. Controls.Add(groupBox1) }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からGroupBox.FlatStyle プロパティを検索する場合は、下記のリンクをクリックしてください。

- GroupBox.FlatStyle プロパティのページへのリンク