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
- 상속
- 특성
필드
| Name | 값 | Description |
|---|---|---|
| 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.