FormBorderStyle 列挙体
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)

<ComVisibleAttribute(True)> _ Public Enumeration FormBorderStyle

メンバ名 | 説明 | |
---|---|---|
![]() | Fixed3D | 固定された 3D 境界線。 |
![]() | FixedDialog | 太い固定されたダイアログ スタイルの境界線。 |
![]() | FixedSingle | 固定された一重線の境界線。 |
![]() | FixedToolWindow | サイズ変更できないツール ウィンドウの境界線。ツール ウィンドウは、タスクバー、またはユーザーが Alt + Tab キーを押したときに表示されるウィンドウには表示されません。FixedToolWindow を指定するフォームはタスクバーに表示されませんが、ShowInTaskbar プロパティが false に設定されていることを確認する必要があります。既定値は true です。 |
![]() | None | 境界線なし。 |
![]() | Sizable | サイズ変更できる境界線。 |
![]() | SizableToolWindow | サイズ変更できるツール ウィンドウの境界線。ツール ウィンドウは、タスクバー、またはユーザーが Alt + Tab キーを押したときに表示されるウィンドウには表示されません。 |

この列挙体は Form クラスで使用されます。この列挙体はフォームのさまざまなスタイルを表します。既定のスタイルは Sizable です。
Windows Mobile for Pocket PC、Windows Mobile for Smartphone、Windows CE プラットフォームメモ : Smartphone アプリケーションでは、アクセスできなくなるため、子フォームの境界線スタイルを None に設定しないでください。

この例では、フォームの境界線スタイルを Fixed3d に変更し、ラベルを使用して境界線の情報を表示します。この例は、Form1 という名前の Form が既に作成されていることを前提にしています。
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 'InitMyForm
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: 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.set_Location(new System.Drawing.Point(80, 80)); label1.set_Name("label1"); label1.set_Size(new System.Drawing.Size(132, 80)); label1.set_Text("Start Position Information"); this.get_Controls().Add(label1); // Changes the border to Fixed3D. set_FormBorderStyle(get_FormBorderStyle().Fixed3D); // Displays the border information. label1.set_Text("The border is " + get_FormBorderStyle()); } //InitMyForm

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に収録されているすべての辞書からFormBorderStyle 列挙体を検索する場合は、下記のリンクをクリックしてください。

- FormBorderStyle 列挙体のページへのリンク