TabControl 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
관련 탭 페이지 집합을 관리합니다.
public ref class TabControl : System::Windows::Forms::Control
public class TabControl : System.Windows.Forms.Control
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
public class TabControl : System.Windows.Forms.Control
type TabControl = class
inherit Control
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type TabControl = class
inherit Control
Public Class TabControl
Inherits Control
- 상속
- 특성
예제
다음 코드 예제에서는 Visual Studio Windows Forms 디자이너를 사용하여 세 개의 탭 페이지를 만듭니 TabControl 다. 각 탭 페이지에는 여러 컨트롤이 포함되어 있습니다.
public ref class Form1: public System::Windows::Forms::Form
{
private:
// Required designer variable.
System::ComponentModel::Container^ components;
// Declare variables.
System::Windows::Forms::RadioButton^ tab3RadioButton2;
System::Windows::Forms::RadioButton^ tab3RadioButton1;
System::Windows::Forms::CheckBox^ tab2CheckBox3;
System::Windows::Forms::CheckBox^ tab2CheckBox2;
System::Windows::Forms::CheckBox^ tab2CheckBox1;
System::Windows::Forms::Label ^ tab1Label1;
System::Windows::Forms::Button^ tab1Button1;
System::Windows::Forms::TabPage^ tabPage3;
System::Windows::Forms::TabPage^ tabPage2;
System::Windows::Forms::TabPage^ tabPage1;
System::Windows::Forms::TabControl^ tabControl1;
public:
Form1()
{
// This call is required for Windows Form Designer support.
InitializeComponent();
}
private:
// This method is required for Designer support.
void InitializeComponent()
{
this->components = gcnew System::ComponentModel::Container;
this->tabPage1 = gcnew System::Windows::Forms::TabPage;
this->tab2CheckBox3 = gcnew System::Windows::Forms::CheckBox;
this->tab3RadioButton2 = gcnew System::Windows::Forms::RadioButton;
this->tabControl1 = gcnew System::Windows::Forms::TabControl;
this->tab2CheckBox2 = gcnew System::Windows::Forms::CheckBox;
this->tab2CheckBox1 = gcnew System::Windows::Forms::CheckBox;
this->tab3RadioButton1 = gcnew System::Windows::Forms::RadioButton;
this->tab1Label1 = gcnew System::Windows::Forms::Label;
this->tabPage3 = gcnew System::Windows::Forms::TabPage;
this->tabPage2 = gcnew System::Windows::Forms::TabPage;
this->tab1Button1 = gcnew System::Windows::Forms::Button;
tabPage1->Text = "tabPage1";
tabPage1->Size = System::Drawing::Size( 256, 214 );
tabPage1->TabIndex = 0;
tab2CheckBox3->Location = System::Drawing::Point( 32, 136 );
tab2CheckBox3->Text = "checkBox3";
tab2CheckBox3->Size = System::Drawing::Size( 176, 32 );
tab2CheckBox3->TabIndex = 2;
tab2CheckBox3->Visible = true;
tab3RadioButton2->Location = System::Drawing::Point( 40, 72 );
tab3RadioButton2->Text = "radioButton2";
tab3RadioButton2->Size = System::Drawing::Size( 152, 24 );
tab3RadioButton2->TabIndex = 1;
tab3RadioButton2->Visible = true;
tabControl1->Location = System::Drawing::Point( 16, 16 );
tabControl1->Size = System::Drawing::Size( 264, 240 );
tabControl1->SelectedIndex = 0;
tabControl1->TabIndex = 0;
tab2CheckBox2->Location = System::Drawing::Point( 32, 80 );
tab2CheckBox2->Text = "checkBox2";
tab2CheckBox2->Size = System::Drawing::Size( 176, 32 );
tab2CheckBox2->TabIndex = 1;
tab2CheckBox2->Visible = true;
tab2CheckBox1->Location = System::Drawing::Point( 32, 24 );
tab2CheckBox1->Text = "checkBox1";
tab2CheckBox1->Size = System::Drawing::Size( 176, 32 );
tab2CheckBox1->TabIndex = 0;
tab3RadioButton1->Location = System::Drawing::Point( 40, 32 );
tab3RadioButton1->Text = "radioButton1";
tab3RadioButton1->Size = System::Drawing::Size( 152, 24 );
tab3RadioButton1->TabIndex = 0;
tab1Label1->Location = System::Drawing::Point( 16, 24 );
tab1Label1->Text = "label1";
tab1Label1->Size = System::Drawing::Size( 224, 96 );
tab1Label1->TabIndex = 1;
tabPage3->Text = "tabPage3";
tabPage3->Size = System::Drawing::Size( 256, 214 );
tabPage3->TabIndex = 2;
tabPage2->Text = "tabPage2";
tabPage2->Size = System::Drawing::Size( 256, 214 );
tabPage2->TabIndex = 1;
tab1Button1->Location = System::Drawing::Point( 88, 144 );
tab1Button1->Size = System::Drawing::Size( 80, 40 );
tab1Button1->TabIndex = 0;
tab1Button1->Text = "button1";
tab1Button1->Click += gcnew System::EventHandler( this, &Form1::tab1Button1_Click );
this->Text = "Form1";
// Adds controls to the second tab page.
tabPage2->Controls->Add( this->tab2CheckBox3 );
tabPage2->Controls->Add( this->tab2CheckBox2 );
tabPage2->Controls->Add( this->tab2CheckBox1 );
// Adds controls to the third tab page.
tabPage3->Controls->Add( this->tab3RadioButton2 );
tabPage3->Controls->Add( this->tab3RadioButton1 );
// Adds controls to the first tab page.
tabPage1->Controls->Add( this->tab1Label1 );
tabPage1->Controls->Add( this->tab1Button1 );
// Adds the TabControl to the form.
this->Controls->Add( this->tabControl1 );
// Adds the tab pages to the TabControl.
tabControl1->Controls->Add( this->tabPage1 );
tabControl1->Controls->Add( this->tabPage2 );
tabControl1->Controls->Add( this->tabPage3 );
}
void tab1Button1_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ )
{
// Inserts the code that should run when the button is clicked.
}
};
int main()
{
Application::Run( gcnew Form1 );
}
public class Form1 : System.Windows.Forms.Form
{
// Required designer variable.
private System.ComponentModel.Container components;
// Declare variables.
private System.Windows.Forms.RadioButton tab3RadioButton2;
private System.Windows.Forms.RadioButton tab3RadioButton1;
private System.Windows.Forms.CheckBox tab2CheckBox3;
private System.Windows.Forms.CheckBox tab2CheckBox2;
private System.Windows.Forms.CheckBox tab2CheckBox1;
private System.Windows.Forms.Label tab1Label1;
private System.Windows.Forms.Button tab1Button1;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabControl tabControl1;
public Form1()
{
// This call is required for Windows Form Designer support.
InitializeComponent();
}
// This method is required for Designer support.
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tab2CheckBox3 = new System.Windows.Forms.CheckBox();
this.tab3RadioButton2 = new System.Windows.Forms.RadioButton();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tab2CheckBox2 = new System.Windows.Forms.CheckBox();
this.tab2CheckBox1 = new System.Windows.Forms.CheckBox();
this.tab3RadioButton1 = new System.Windows.Forms.RadioButton();
this.tab1Label1 = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tab1Button1 = new System.Windows.Forms.Button();
tabPage1.Text = "tabPage1";
tabPage1.Size = new System.Drawing.Size(256, 214);
tabPage1.TabIndex = 0;
tab2CheckBox3.Location = new System.Drawing.Point(32, 136);
tab2CheckBox3.Text = "checkBox3";
tab2CheckBox3.Size = new System.Drawing.Size(176, 32);
tab2CheckBox3.TabIndex = 2;
tab2CheckBox3.Visible = true;
tab3RadioButton2.Location = new System.Drawing.Point(40, 72);
tab3RadioButton2.Text = "radioButton2";
tab3RadioButton2.Size = new System.Drawing.Size(152, 24);
tab3RadioButton2.TabIndex = 1;
tab3RadioButton2.Visible = true;
tabControl1.Location = new System.Drawing.Point(16, 16);
tabControl1.Size = new System.Drawing.Size(264, 240);
tabControl1.SelectedIndex = 0;
tabControl1.TabIndex = 0;
tab2CheckBox2.Location = new System.Drawing.Point(32, 80);
tab2CheckBox2.Text = "checkBox2";
tab2CheckBox2.Size = new System.Drawing.Size(176, 32);
tab2CheckBox2.TabIndex = 1;
tab2CheckBox2.Visible = true;
tab2CheckBox1.Location = new System.Drawing.Point(32, 24);
tab2CheckBox1.Text = "checkBox1";
tab2CheckBox1.Size = new System.Drawing.Size(176, 32);
tab2CheckBox1.TabIndex = 0;
tab3RadioButton1.Location = new System.Drawing.Point(40, 32);
tab3RadioButton1.Text = "radioButton1";
tab3RadioButton1.Size = new System.Drawing.Size(152, 24);
tab3RadioButton1.TabIndex = 0;
tab1Label1.Location = new System.Drawing.Point(16, 24);
tab1Label1.Text = "label1";
tab1Label1.Size = new System.Drawing.Size(224, 96);
tab1Label1.TabIndex = 1;
tabPage3.Text = "tabPage3";
tabPage3.Size = new System.Drawing.Size(256, 214);
tabPage3.TabIndex = 2;
tabPage2.Text = "tabPage2";
tabPage2.Size = new System.Drawing.Size(256, 214);
tabPage2.TabIndex = 1;
tab1Button1.Location = new System.Drawing.Point(88, 144);
tab1Button1.Size = new System.Drawing.Size(80, 40);
tab1Button1.TabIndex = 0;
tab1Button1.Text = "button1";
tab1Button1.Click += new
System.EventHandler(this.tab1Button1_Click);
this.Text = "Form1";
// Adds controls to the second tab page.
tabPage2.Controls.Add(this.tab2CheckBox3);
tabPage2.Controls.Add(this.tab2CheckBox2);
tabPage2.Controls.Add(this.tab2CheckBox1);
// Adds controls to the third tab page.
tabPage3.Controls.Add(this.tab3RadioButton2);
tabPage3.Controls.Add(this.tab3RadioButton1);
// Adds controls to the first tab page.
tabPage1.Controls.Add(this.tab1Label1);
tabPage1.Controls.Add(this.tab1Button1);
// Adds the TabControl to the form.
this.Controls.Add(this.tabControl1);
// Adds the tab pages to the TabControl.
tabControl1.Controls.Add(this.tabPage1);
tabControl1.Controls.Add(this.tabPage2);
tabControl1.Controls.Add(this.tabPage3);
}
private void tab1Button1_Click (object sender, System.EventArgs e)
{
// Inserts the code that should run when the button is clicked.
}
public static void Main(string[] args)
{
Application.Run(new Form1());
}
}
Public Class Form1
Inherits System.Windows.Forms.Form
' Required designer variable.
Private components As System.ComponentModel.Container
' Declares variables.
Private tab3RadioButton2 As System.Windows.Forms.RadioButton
Private tab3RadioButton1 As System.Windows.Forms.RadioButton
Private tab2CheckBox3 As System.Windows.Forms.CheckBox
Private tab2CheckBox2 As System.Windows.Forms.CheckBox
Private tab2CheckBox1 As System.Windows.Forms.CheckBox
Private tab1Label1 As System.Windows.Forms.Label
Private WithEvents tab1Button1 As System.Windows.Forms.Button
Private tabPage3 As System.Windows.Forms.TabPage
Private tabPage2 As System.Windows.Forms.TabPage
Private tabPage1 As System.Windows.Forms.TabPage
Private tabControl1 As System.Windows.Forms.TabControl
Public Sub New()
' This call is required for Windows Form Designer support.
InitializeComponent()
End Sub
' This method is required for Designer support.
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Me.tabPage1 = New System.Windows.Forms.TabPage()
Me.tab2CheckBox3 = New System.Windows.Forms.CheckBox()
Me.tab3RadioButton2 = New System.Windows.Forms.RadioButton()
Me.tabControl1 = New System.Windows.Forms.TabControl()
Me.tab2CheckBox2 = New System.Windows.Forms.CheckBox()
Me.tab2CheckBox1 = New System.Windows.Forms.CheckBox()
Me.tab3RadioButton1 = New System.Windows.Forms.RadioButton()
Me.tab1Label1 = New System.Windows.Forms.Label()
Me.tabPage3 = New System.Windows.Forms.TabPage()
Me.tabPage2 = New System.Windows.Forms.TabPage()
Me.tab1Button1 = New System.Windows.Forms.Button()
tabPage1.Text = "tabPage1"
tabPage1.Size = New System.Drawing.Size(256, 214)
tabPage1.TabIndex = 0
tab2CheckBox3.Location = New System.Drawing.Point(32, 136)
tab2CheckBox3.Text = "checkBox3"
tab2CheckBox3.Size = New System.Drawing.Size(176, 32)
tab2CheckBox3.TabIndex = 2
tab2CheckBox3.Visible = True
tab3RadioButton2.Location = New System.Drawing.Point(40, 72)
tab3RadioButton2.Text = "radioButton2"
tab3RadioButton2.Size = New System.Drawing.Size(152, 24)
tab3RadioButton2.TabIndex = 1
tab3RadioButton2.Visible = True
tabControl1.Location = New System.Drawing.Point(16, 16)
tabControl1.Size = New System.Drawing.Size(264, 240)
tabControl1.SelectedIndex = 0
tabControl1.TabIndex = 0
tab2CheckBox2.Location = New System.Drawing.Point(32, 80)
tab2CheckBox2.Text = "checkBox2"
tab2CheckBox2.Size = New System.Drawing.Size(176, 32)
tab2CheckBox2.TabIndex = 1
tab2CheckBox2.Visible = True
tab2CheckBox1.Location = New System.Drawing.Point(32, 24)
tab2CheckBox1.Text = "checkBox1"
tab2CheckBox1.Size = New System.Drawing.Size(176, 32)
tab2CheckBox1.TabIndex = 0
tab3RadioButton1.Location = New System.Drawing.Point(40, 32)
tab3RadioButton1.Text = "radioButton1"
tab3RadioButton1.Size = New System.Drawing.Size(152, 24)
tab3RadioButton1.TabIndex = 0
tab1Label1.Location = New System.Drawing.Point(16, 24)
tab1Label1.Text = "label1"
tab1Label1.Size = New System.Drawing.Size(224, 96)
tab1Label1.TabIndex = 1
tabPage3.Text = "tabPage3"
tabPage3.Size = New System.Drawing.Size(256, 214)
tabPage3.TabIndex = 2
tabPage2.Text = "tabPage2"
tabPage2.Size = New System.Drawing.Size(256, 214)
tabPage2.TabIndex = 1
tab1Button1.Location = New System.Drawing.Point(88, 144)
tab1Button1.Size = New System.Drawing.Size(80, 40)
tab1Button1.TabIndex = 0
tab1Button1.Text = "button1"
Me.Text = "Form1"
' Adds controls to the second tab page.
tabPage2.Controls.Add(Me.tab2CheckBox3)
tabPage2.Controls.Add(Me.tab2CheckBox2)
tabPage2.Controls.Add(Me.tab2CheckBox1)
' Adds controls to the third tab page.
tabPage3.Controls.Add(Me.tab3RadioButton2)
tabPage3.Controls.Add(Me.tab3RadioButton1)
' Adds controls to the first tab page.
tabPage1.Controls.Add(Me.tab1Label1)
tabPage1.Controls.Add(Me.tab1Button1)
' Adds the TabControl to the form.
Me.Controls.Add(tabControl1)
' Adds the tab pages to the TabControl.
tabControl1.Controls.Add(Me.tabPage1)
tabControl1.Controls.Add(Me.tabPage2)
tabControl1.Controls.Add(Me.tabPage3)
End Sub
Private Sub tab1Button1_Click(sender As Object, e As System.EventArgs) _
Handles tab1Button1.Click
' Inserts the code that should run when the button is clicked.
End Sub
Public Shared Sub Main()
Application.Run(New Form1())
End Sub
End Class
설명
TabControl는 TabPage 속성을 통해 추가된 TabPages 개체로 표현된 탭 페이지를 포함합니다. 이 컬렉션의 탭 페이지 순서는 탭이 컨트롤에 나타나는 순서를 반영합니다.
사용자는 컨트롤의 탭 중 하나를 클릭하여 현재 TabPage 를 변경할 수 있습니다. 다음 TabControl 속성 및 메서드 중 하나를 사용하여 현재 TabPage 를 프로그래밍 방식으로 변경할 수도 있습니다.
다음 이벤트 중 하나를 처리하여 현재 탭이 변경되면 응답할 수 있습니다.
탭은 TabControl 개별 TabPage 컨트롤의 TabControl일부가 아니라 해당 탭의 일부입니다. 속성과 같은 ForeColor 클래스의 TabPage 멤버는 탭 페이지의 클라이언트 사각형에만 영향을 주지만 탭에는 영향을 미치지 않습니다. 또한 메서드는 Hide 탭을 TabPage 숨기지 않습니다. 탭을 숨기려면 컬렉션에서 TabControl.TabPages 컨트롤을 TabPage 제거해야 합니다.
탭은 발생 시기 및 Leave 이벤트를 TabPage 확인하기 Enter 위한 탭 페이지의 일부로 간주됩니다.
컬렉션에 하나 이상의 TabPageTabControl.TabPages 이벤트가 없으면 클래스에 TabControl 대해 다음 이벤트가 발생하지 않습니다. Control.MouseUpControl.ClickControl.DoubleClickControl.MouseDownControl.MouseHoverControl.MouseEnterControl.MouseLeaveControl.MouseMove 컬렉션에 하나 TabPage 이상이 있고 사용자가 탭 컨트롤의 머리글(이름이 표시되는 위치 TabPage ) TabControl 과 상호 작용하는 경우 적절한 이벤트가 발생합니다. 그러나 사용자 상호 작용이 탭 페이지 TabPage 내에 ClientRectangle 있으면 적절한 이벤트가 발생합니다.
탭 페이지가 TabPage 표시될 때까지 컨트롤이 만들어지지 않으며 이러한 컨트롤의 데이터 바인딩은 탭 페이지가 표시될 때까지 활성화되지 않습니다.
시각적 스타일을 사용하도록 설정하고 속성이 Alignment 이외의 Top값으로 설정된 경우 탭 내용이 제대로 렌더링되지 않을 수 있습니다. 이 문제를 해결하려면 소유자 드로잉을 사용하여 탭 내용을 직접 그릴 수 있습니다. 자세한 내용은 방법: TabControl을 사용하여 Side-Aligned 탭 표시를 참조하세요.
속성이 Alignment 이외의 Top 값으로 설정되고 Appearance 속성이 이외의 Normal값으로 설정된 경우 탭 페이지 내용이 올바르게 렌더링되지 않을 수 있습니다.
생성자
| Name | Description |
|---|---|
| TabControl() |
TabControl 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| AccessibilityObject |
컨트롤에 AccessibleObject 할당된 값을 가져옵니다. (다음에서 상속됨 Control) |
| AccessibleDefaultActionDescription |
접근성 클라이언트 애플리케이션에서 사용할 컨트롤의 기본 작업 설명을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| AccessibleDescription |
접근성 클라이언트 애플리케이션에서 사용하는 컨트롤에 대한 설명을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| AccessibleName |
접근성 클라이언트 애플리케이션에서 사용하는 컨트롤의 이름을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| AccessibleRole |
컨트롤의 액세스 가능한 역할을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Alignment |
탭이 정렬되는 컨트롤의 영역(예: 위쪽)을 가져오거나 설정합니다. |
| AllowDrop |
컨트롤이 사용자가 끌어온 데이터를 허용할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Anchor |
컨트롤이 바인딩되는 컨테이너의 가장자리를 가져오거나 설정하며 컨트롤의 크기를 부모로 조정하는 방법을 결정합니다. (다음에서 상속됨 Control) |
| Appearance |
컨트롤 탭의 시각적 모양을 가져오거나 설정합니다. |
| AutoScrollOffset |
이 컨트롤이 스크롤 ScrollControlIntoView(Control)되는 위치를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| AutoSize |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 Control) |
| BackColor |
이 멤버는 이 컨트롤에 의미가 없습니다. |
| BackgroundImage |
이 멤버는 이 컨트롤에 의미가 없습니다. |
| BackgroundImageLayout |
이 멤버는 이 컨트롤에 의미가 없습니다. |
| BindingContext |
컨트롤의 값을 BindingContext 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Bottom |
컨트롤의 아래쪽 가장자리와 컨테이너 클라이언트 영역의 위쪽 가장자리 사이의 거리를 픽셀 단위로 가져옵니다. (다음에서 상속됨 Control) |
| Bounds |
부모 컨트롤을 기준으로 비클라이언트 요소를 포함하여 컨트롤의 크기와 위치를 픽셀 단위로 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| CanEnableIme |
IME 지원을 사용하도록 설정하기 위해 속성을 활성 값으로 설정할 수 있는지 여부를 ImeMode 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| CanFocus |
컨트롤이 포커스를 받을 수 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| CanRaiseEvents |
컨트롤에서 이벤트가 발생할 수 있는지 여부를 결정합니다. (다음에서 상속됨 Control) |
| CanSelect |
컨트롤을 선택할 수 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Capture |
컨트롤이 마우스를 캡처했는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| CausesValidation |
컨트롤이 포커스를 받을 때 유효성 검사가 필요한 컨트롤에서 유효성 검사를 수행할지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| ClientRectangle |
컨트롤의 클라이언트 영역을 나타내는 사각형을 가져옵니다. (다음에서 상속됨 Control) |
| ClientSize |
컨트롤의 클라이언트 영역 높이와 너비를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| CompanyName |
컨트롤을 포함하는 애플리케이션의 회사 또는 작성자의 이름을 가져옵니다. (다음에서 상속됨 Control) |
| Container |
를 IContainer 포함하는 값을 가져옵니다 Component. (다음에서 상속됨 Component) |
| ContainsFocus |
컨트롤 또는 해당 자식 컨트롤 중 하나에 현재 입력 포커스가 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| ContextMenu |
사용되지 않음.
컨트롤과 연결된 바로 가기 메뉴를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| ContextMenuStrip |
이 컨트롤과 연결된 값을 ContextMenuStrip 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Controls |
컨트롤 내에 포함된 컨트롤의 컬렉션을 가져옵니다. (다음에서 상속됨 Control) |
| Created |
컨트롤이 만들어졌는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| CreateParams |
이 멤버는 재정의합니다.CreateParams |
| Cursor |
마우스 포인터가 컨트롤 위에 있을 때 표시되는 커서를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| DataBindings |
컨트롤의 데이터 바인딩을 가져옵니다. (다음에서 상속됨 Control) |
| DataContext |
데이터 바인딩을 위해 데이터 컨텍스트를 가져오거나 설정합니다. 앰비언트 속성입니다. (다음에서 상속됨 Control) |
| DefaultCursor |
컨트롤의 기본 커서를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| DefaultImeMode |
컨트롤에서 지원하는 기본 IME(입력 메서드 편집기) 모드를 가져옵니다. (다음에서 상속됨 Control) |
| DefaultMargin |
컨트롤 간에 기본적으로 지정된 공간을 픽셀 단위로 가져옵니다. (다음에서 상속됨 Control) |
| DefaultMaximumSize |
컨트롤의 기본 최대 크기로 지정된 길이와 높이(픽셀)를 가져옵니다. (다음에서 상속됨 Control) |
| DefaultMinimumSize |
컨트롤의 기본 최소 크기로 지정된 길이와 높이(픽셀)를 가져옵니다. (다음에서 상속됨 Control) |
| DefaultPadding |
컨트롤 내용의 기본 내부 간격(픽셀)을 가져옵니다. (다음에서 상속됨 Control) |
| DefaultSize |
컨트롤의 기본 크기를 가져옵니다. |
| DesignMode |
현재 디자인 모드인지 여부를 Component 나타내는 값을 가져옵니다. (다음에서 상속됨 Component) |
| DeviceDpi |
컨트롤이 현재 표시되는 디스플레이 디바이스의 DPI 값을 가져옵니다. (다음에서 상속됨 Control) |
| DisplayRectangle |
컨트롤 탭 페이지의 표시 영역을 가져옵니다. |
| Disposing |
기본 Control 클래스가 삭제 중인지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Dock |
부모 컨트롤에 도킹되는 컨트롤 테두리를 가져오거나 설정하며 컨트롤의 크기를 부모 컨트롤과 함께 조정하는 방법을 결정합니다. (다음에서 상속됨 Control) |
| DoubleBuffered |
이 멤버는 이 컨트롤에 의미가 없습니다. |
| DrawMode |
컨트롤의 탭을 그리는 방법을 가져오거나 설정합니다. |
| Enabled |
컨트롤이 사용자 상호 작용에 응답할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Events |
이 Component에 연결된 이벤트 처리기 목록을 가져옵니다. (다음에서 상속됨 Component) |
| Focused |
컨트롤에 입력 포커스가 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Font |
컨트롤에 표시되는 텍스트의 글꼴을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| FontHeight |
컨트롤 글꼴의 높이를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| ForeColor |
이 멤버는 이 컨트롤에 의미가 없습니다. |
| Handle |
컨트롤이 바인딩된 창 핸들을 가져옵니다. (다음에서 상속됨 Control) |
| HasChildren |
컨트롤에 하나 이상의 자식 컨트롤이 포함되어 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Height |
컨트롤의 높이를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| HotTrack |
마우스가 컨트롤을 지나갈 때 컨트롤의 탭 모양이 변경되는지 여부를 나타내는 값을 가져오거나 설정합니다. |
| ImageList |
컨트롤의 탭에 표시할 이미지를 가져오거나 설정합니다. |
| ImeMode |
컨트롤의 IME(입력 메서드 편집기) 모드를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| ImeModeBase |
컨트롤의 IME 모드를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| InvokeRequired |
호출자가 컨트롤을 만든 스레드와 다른 스레드에 있으므로 호출자가 컨트롤에 메서드를 호출할 때 호출자가 호출 메서드를 호출해야 하는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| IsAccessible |
컨트롤이 접근성 애플리케이션에 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| IsAncestorSiteInDesignMode |
이 컨트롤의 상위 항목 중 하나가 배치되고 DesignMode에 해당 사이트가 있는지 나타냅니다. 이 속성은 읽기 전용입니다. (다음에서 상속됨 Control) |
| IsDisposed |
컨트롤이 삭제되었는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| IsHandleCreated |
컨트롤에 연결된 핸들이 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| IsMirrored |
컨트롤이 미러링되는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| ItemSize |
컨트롤 탭의 크기를 가져오거나 설정합니다. |
| LayoutEngine |
컨트롤 레이아웃 엔진의 캐시된 인스턴스를 가져옵니다. (다음에서 상속됨 Control) |
| Left |
컨트롤의 왼쪽 가장자리와 컨테이너 클라이언트 영역의 왼쪽 가장자리 사이의 거리를 픽셀 단위로 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Location |
컨테이너의 왼쪽 위 모퉁이를 기준으로 컨트롤의 왼쪽 위 모퉁이 좌표를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Margin |
컨트롤 사이의 공간을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| MaximumSize |
지정할 수 있는 상한 GetPreferredSize(Size) 인 크기를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| MinimumSize |
지정할 수 있는 하한 GetPreferredSize(Size) 인 크기를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Multiline |
둘 이상의 탭 행을 표시할 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. |
| Name |
컨트롤의 이름을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Padding |
컨트롤의 탭 페이지에서 각 항목 주위의 공간 크기를 가져오거나 설정합니다. |
| Parent |
컨트롤의 부모 컨테이너를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| PreferredSize |
컨트롤이 맞을 수 있는 사각형 영역의 크기를 가져옵니다. (다음에서 상속됨 Control) |
| ProductName |
컨트롤을 포함하는 어셈블리의 제품 이름을 가져옵니다. (다음에서 상속됨 Control) |
| ProductVersion |
컨트롤을 포함하는 어셈블리의 버전을 가져옵니다. (다음에서 상속됨 Control) |
| RecreatingHandle |
컨트롤이 현재 해당 핸들을 다시 만들고 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| Region |
컨트롤과 연결된 창 영역을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| RenderRightToLeft |
사용되지 않음.
사용되지 않음.
이 속성은 이제 사용되지 않습니다. (다음에서 상속됨 Control) |
| ResizeRedraw |
크기가 조정될 때 컨트롤 자체를 다시 그릴지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Right |
컨트롤의 오른쪽 가장자리와 컨테이너 클라이언트 영역의 왼쪽 가장자리 사이의 거리를 픽셀 단위로 가져옵니다. (다음에서 상속됨 Control) |
| RightToLeft |
컨트롤의 요소가 오른쪽에서 왼쪽 글꼴을 사용하여 로캘을 지원하도록 정렬되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| RightToLeftLayout |
오른쪽에서 왼쪽으로 미러 배치가 켜져 있는지 여부를 나타내는 값을 가져오거나 설정합니다. |
| RowCount |
컨트롤의 탭 스트립에 현재 표시되는 행 수를 가져옵니다. |
| ScaleChildren |
자식 컨트롤의 크기를 결정하는 값을 가져옵니다. (다음에서 상속됨 Control) |
| SelectedIndex |
현재 선택한 탭 페이지의 인덱을 가져오거나 설정합니다. |
| SelectedTab |
현재 선택한 탭 페이지를 가져오거나 설정합니다. |
| ShowFocusCues |
컨트롤에 포커스 사각형이 표시되어야 하는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| ShowKeyboardCues |
사용자 인터페이스가 키보드 가속기를 표시하거나 숨길 적절한 상태에 있는지 여부를 나타내는 값을 가져옵니다. (다음에서 상속됨 Control) |
| ShowToolTips |
마우스가 탭을 통과할 때 탭의 도구 설명이 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다. |
| Site |
컨트롤의 사이트를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Size |
컨트롤의 높이와 너비를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| SizeMode |
컨트롤의 탭 크기가 조정되는 방식을 가져오거나 설정합니다. |
| TabCount |
탭 스트립의 탭 수를 가져옵니다. |
| TabIndex |
컨테이너 내에서 컨트롤의 탭 순서를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| TabPages |
이 탭 컨트롤의 탭 페이지 컬렉션을 가져옵니다. |
| TabStop |
사용자가 TAB 키를 사용하여 이 컨트롤에 포커스를 줄 수 있는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Tag |
컨트롤에 대한 데이터가 들어 있는 개체를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Text |
이 멤버는 이 컨트롤에 의미가 없습니다. |
| Top |
컨트롤의 위쪽 가장자리와 컨테이너 클라이언트 영역의 위쪽 가장자리 사이의 거리를 픽셀 단위로 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| TopLevelControl |
다른 Windows Forms 컨트롤에서 부모로 설정되지 않은 부모 컨트롤을 가져옵니다. 일반적으로 컨트롤이 포함된 가장 Form 바깥쪽입니다. (다음에서 상속됨 Control) |
| UseWaitCursor |
현재 컨트롤 및 모든 자식 컨트롤에 대기 커서를 사용할지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Visible |
컨트롤과 모든 자식 컨트롤이 표시되는지 여부를 나타내는 값을 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| Width |
컨트롤의 너비를 가져오거나 설정합니다. (다음에서 상속됨 Control) |
| WindowTarget |
이 속성은 이 클래스와 관련이 없습니다. (다음에서 상속됨 Control) |
메서드
이벤트
| Name | Description |
|---|---|
| AutoSizeChanged |
이 이벤트는 이 클래스와 관련이 없습니다. (다음에서 상속됨 Control) |
| BackColorChanged |
이 이벤트는 이 컨트롤에 의미가 없습니다. |
| BackgroundImageChanged |
BackgroundImage 속성 값이 변경되면 발생합니다. |
| BackgroundImageLayoutChanged |
BackgroundImageLayout 속성 값이 변경되면 발생합니다. |
| BindingContextChanged |
BindingContext 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| CausesValidationChanged |
CausesValidation 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| ChangeUICues |
포커스 또는 키보드 UI(사용자 인터페이스) 신호가 변경되면 발생합니다. (다음에서 상속됨 Control) |
| Click |
컨트롤을 클릭할 때 발생합니다. (다음에서 상속됨 Control) |
| ClientSizeChanged |
ClientSize 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| ContextMenuChanged |
사용되지 않음.
ContextMenu 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| ContextMenuStripChanged |
ContextMenuStrip 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| ControlAdded |
새 컨트롤이 에 추가 Control.ControlCollection되면 발생합니다. (다음에서 상속됨 Control) |
| ControlRemoved |
에서 컨트롤을 제거할 때 발생합니다 Control.ControlCollection. (다음에서 상속됨 Control) |
| CursorChanged |
Cursor 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| DataContextChanged |
DataContext 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| Deselected |
탭의 선택을 취소할 때 발생합니다. |
| Deselecting |
탭을 선택 취소하기 전에 발생하므로 처리기가 탭 변경을 취소할 수 있습니다. |
| Disposed |
구성 요소가 메서드 호출에 Dispose() 의해 삭제될 때 발생합니다. (다음에서 상속됨 Component) |
| DockChanged |
Dock 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| DoubleClick |
컨트롤을 두 번 클릭할 때 발생합니다. (다음에서 상속됨 Control) |
| DpiChangedAfterParent |
부모 컨트롤 또는 폼의 DPI가 변경된 후 컨트롤에 대한 DPI 설정이 프로그래밍 방식으로 변경될 때 발생합니다. (다음에서 상속됨 Control) |
| DpiChangedBeforeParent |
부모 컨트롤 또는 폼에 대한 DPI 변경 이벤트가 발생하기 전에 컨트롤에 대한 DPI 설정이 프로그래밍 방식으로 변경될 때 발생합니다. (다음에서 상속됨 Control) |
| DragDrop |
끌어서 놓기 작업이 완료되면 발생합니다. (다음에서 상속됨 Control) |
| DragEnter |
개체를 컨트롤의 경계로 끌 때 발생합니다. (다음에서 상속됨 Control) |
| DragLeave |
개체를 컨트롤의 범위 밖으로 끌 때 발생합니다. (다음에서 상속됨 Control) |
| DragOver |
개체를 컨트롤의 범위 위로 끌 때 발생합니다. (다음에서 상속됨 Control) |
| DrawItem |
속성이 TabControl 설정된 경우 각 탭을 칠해야 할 DrawMode때 OwnerDrawFixed 발생합니다. |
| EnabledChanged |
Enabled 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| Enter |
컨트롤을 입력할 때 발생합니다. (다음에서 상속됨 Control) |
| FontChanged |
속성 값이 변경되면 Font 발생합니다. (다음에서 상속됨 Control) |
| ForeColorChanged |
ForeColor 속성 값이 변경되면 발생합니다. |
| GiveFeedback |
끌기 작업 중에 발생합니다. (다음에서 상속됨 Control) |
| GotFocus |
컨트롤이 포커스를 받을 때 발생합니다. (다음에서 상속됨 Control) |
| HandleCreated |
컨트롤에 대한 핸들을 만들 때 발생합니다. (다음에서 상속됨 Control) |
| HandleDestroyed |
컨트롤의 핸들이 소멸되는 중일 때 발생합니다. (다음에서 상속됨 Control) |
| HelpRequested |
사용자가 컨트롤에 대한 도움말을 요청할 때 발생합니다. (다음에서 상속됨 Control) |
| ImeModeChanged |
속성이 ImeMode 변경될 때 발생합니다. (다음에서 상속됨 Control) |
| Invalidated |
컨트롤의 디스플레이에 다시 그리기가 필요할 때 발생합니다. (다음에서 상속됨 Control) |
| KeyDown |
컨트롤에 포커스가 있는 동안 키를 누를 때 발생합니다. (다음에서 상속됨 Control) |
| KeyPress |
컨트롤에 포커스가 있는 동안 문자, 공백 또는 백스페이스 키를 누를 때 발생합니다. (다음에서 상속됨 Control) |
| KeyUp |
컨트롤에 포커스가 있는 동안 키가 해제될 때 발생합니다. (다음에서 상속됨 Control) |
| Layout |
컨트롤이 자식 컨트롤의 위치를 변경해야 하는 경우에 발생합니다. (다음에서 상속됨 Control) |
| Leave |
입력 포커스가 컨트롤을 떠날 때 발생합니다. (다음에서 상속됨 Control) |
| LocationChanged |
Location 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| LostFocus |
컨트롤이 포커스를 잃을 때 발생합니다. (다음에서 상속됨 Control) |
| MarginChanged |
컨트롤의 여백이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| MouseCaptureChanged |
컨트롤이 마우스 캡처를 잃을 때 발생합니다. (다음에서 상속됨 Control) |
| MouseClick |
마우스로 컨트롤을 클릭할 때 발생합니다. (다음에서 상속됨 Control) |
| MouseDoubleClick |
컨트롤을 마우스로 두 번 클릭하면 발생합니다. (다음에서 상속됨 Control) |
| MouseDown |
마우스 포인터가 컨트롤 위에 있고 마우스 단추를 누를 때 발생합니다. (다음에서 상속됨 Control) |
| MouseEnter |
마우스 포인터가 컨트롤에 들어갈 때 발생합니다. (다음에서 상속됨 Control) |
| MouseHover |
마우스 포인터가 컨트롤에 놓일 때 발생합니다. (다음에서 상속됨 Control) |
| MouseLeave |
마우스 포인터가 컨트롤을 떠날 때 발생합니다. (다음에서 상속됨 Control) |
| MouseMove |
마우스 포인터를 컨트롤 위로 이동할 때 발생합니다. (다음에서 상속됨 Control) |
| MouseUp |
마우스 포인터가 컨트롤 위에 있고 마우스 단추가 놓일 때 발생합니다. (다음에서 상속됨 Control) |
| MouseWheel |
컨트롤에 포커스가 있는 동안 마우스 휠이 움직일 때 발생합니다. (다음에서 상속됨 Control) |
| Move |
컨트롤을 이동할 때 발생합니다. (다음에서 상속됨 Control) |
| PaddingChanged |
컨트롤의 안쪽 여백이 변경될 때 발생합니다. (다음에서 상속됨 Control) |
| Paint |
이 이벤트는 이 컨트롤에 의미가 없습니다. |
| ParentChanged |
속성 값이 변경되면 Parent 발생합니다. (다음에서 상속됨 Control) |
| PreviewKeyDown |
포커스가 이 컨트롤에 KeyDown 있는 동안 키를 누르면 이벤트 전에 발생합니다. (다음에서 상속됨 Control) |
| QueryAccessibilityHelp |
접근성 애플리케이션에 대한 도움말을 제공할 때 AccessibleObject 발생합니다. (다음에서 상속됨 Control) |
| QueryContinueDrag |
끌어서 놓기 작업 중에 발생하며 끌기 소스에서 끌어서 놓기 작업을 취소해야 하는지 여부를 결정할 수 있습니다. (다음에서 상속됨 Control) |
| RegionChanged |
Region 속성 값이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| Resize |
컨트롤의 크기를 조정할 때 발생합니다. (다음에서 상속됨 Control) |
| RightToLeftChanged |
속성 값이 변경되면 RightToLeft 발생합니다. (다음에서 상속됨 Control) |
| RightToLeftLayoutChanged |
RightToLeftLayout 속성 값이 변경되면 발생합니다. |
| Selected |
탭을 선택하면 발생합니다. |
| SelectedIndexChanged |
속성이 SelectedIndex 변경될 때 발생합니다. |
| Selecting |
탭을 선택하기 전에 발생하므로 처리기에서 탭 변경을 취소할 수 있습니다. |
| SizeChanged |
속성 값이 변경되면 Size 발생합니다. (다음에서 상속됨 Control) |
| StyleChanged |
컨트롤 스타일이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| SystemColorsChanged |
시스템 색이 변경되면 발생합니다. (다음에서 상속됨 Control) |
| TabIndexChanged |
속성 값이 변경되면 TabIndex 발생합니다. (다음에서 상속됨 Control) |
| TabStopChanged |
속성 값이 변경되면 TabStop 발생합니다. (다음에서 상속됨 Control) |
| TextChanged |
Text 속성 값이 변경되면 발생합니다. |
| Validated |
컨트롤의 유효성 검사가 완료되면 발생합니다. (다음에서 상속됨 Control) |
| Validating |
컨트롤의 유효성을 검사할 때 발생합니다. (다음에서 상속됨 Control) |
| VisibleChanged |
속성 값이 변경되면 Visible 발생합니다. (다음에서 상속됨 Control) |
명시적 인터페이스 구현
| Name | Description |
|---|---|
| IDropTarget.OnDragDrop(DragEventArgs) |
DragDrop 이벤트를 발생시킵니다. (다음에서 상속됨 Control) |
| IDropTarget.OnDragEnter(DragEventArgs) |
DragEnter 이벤트를 발생시킵니다. (다음에서 상속됨 Control) |
| IDropTarget.OnDragLeave(EventArgs) |
DragLeave 이벤트를 발생시킵니다. (다음에서 상속됨 Control) |
| IDropTarget.OnDragOver(DragEventArgs) |
DragOver 이벤트를 발생시킵니다. (다음에서 상속됨 Control) |