FormBorderStyle 列挙型
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
フォームの罫線スタイルを指定します。
public enum class FormBorderStyle
[System.Runtime.InteropServices.ComVisible(true)]
public enum FormBorderStyle
public enum FormBorderStyle
[<System.Runtime.InteropServices.ComVisible(true)>]
type FormBorderStyle =
type FormBorderStyle =
Public Enum FormBorderStyle
- 継承
- 属性
フィールド
| 名前 | 値 | 説明 |
|---|---|---|
| None | 0 | 罫線なし |
| FixedSingle | 1 | 固定の単一行罫線。 |
| Fixed3D | 2 | 固定の 3 次元境界線。 |
| FixedDialog | 3 | 太い固定ダイアログ スタイルの罫線。 |
| Sizable | 4 | サイズ変更可能な罫線。 |
| FixedToolWindow | 5 | サイズ変更できないツール ウィンドウの境界線。 ツール ウィンドウは、タスク バーや、ユーザーが Alt キーを押しながら Tab キーを押したときに表示されるウィンドウには表示されません。 通常、FixedToolWindowを指定するフォームはタスク バーには表示されませんが、ShowInTaskbarプロパティの既定値が |
| SizableToolWindow | 6 | サイズ変更可能なツール ウィンドウの境界線。 ツール ウィンドウは、タスク バーや、ユーザーが Alt キーを押しながら Tab キーを押したときに表示されるウィンドウには表示されません。 |
例
この例では、フォームの罫線スタイルを Fixed3d に変更し、ラベルを使用して罫線の情報を表示します。 この例では、Formという名前のForm1が既に作成されていることを前提としています。
public:
void InitMyForm()
{
// Adds a label to the form.
Label^ label1 = gcnew Label;
label1->Location = System::Drawing::Point( 80, 80 );
label1->Name = "label1";
label1->Size = System::Drawing::Size( 132, 80 );
label1->Text = "Start Position Information";
this->Controls->Add( label1 );
// Changes the border to Fixed3D.
FormBorderStyle = ::FormBorderStyle::Fixed3D;
// Displays the border information.
label1->Text = String::Format( "The border is {0}", FormBorderStyle );
}
public void InitMyForm()
{
// Adds a label to the form.
Label label1 = new Label();
label1.Location = new System.Drawing.Point(80,80);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(132,80);
label1.Text = "Start Position Information";
this.Controls.Add(label1);
// Changes the border to Fixed3D.
FormBorderStyle = FormBorderStyle.Fixed3D;
// Displays the border information.
label1.Text = "The border is " + FormBorderStyle;
}
Public Sub InitMyForm()
' Adds a label to the form.
Dim label1 As New Label()
label1.Location = New System.Drawing.Point(80, 80)
label1.Name = "label1"
label1.Size = New System.Drawing.Size(132, 80)
label1.Text = "Start Position Information"
Me.Controls.Add(label1)
' Changes the border to Fixed3D.
FormBorderStyle = FormBorderStyle.Fixed3D
' Displays the border information.
label1.Text = "The border is " + FormBorderStyle
End Sub
注釈
この列挙型は、 Form クラスによって使用されます。 フォームのさまざまなスタイルを表します。 既定のスタイルは Sizableです。