SplitContainer.FixedPanel SplitContainer.FixedPanel SplitContainer.FixedPanel SplitContainer.FixedPanel Property

정의

컨테이너의 크기가 조정될 때 같은 크기를 유지할 SplitContainer 패널을 가져오거나 설정합니다.Gets or sets which SplitContainer panel remains the same size when the container is resized.

public:
 property System::Windows::Forms::FixedPanel FixedPanel { System::Windows::Forms::FixedPanel get(); void set(System::Windows::Forms::FixedPanel value); };
public System.Windows.Forms.FixedPanel FixedPanel { get; set; }
member this.FixedPanel : System.Windows.Forms.FixedPanel with get, set
Public Property FixedPanel As FixedPanel

속성 값

FixedPanel의 다음 값 중 하나입니다.One of the values of FixedPanel. 기본값은 None입니다.The default value is None.

예외

할당된 값이 FixedPanel 값 중 하나가 아닌 경우The assigned value is not one of the FixedPanel values.

예제

다음 코드 예제에서는 해당 위쪽 패널 란 가로 분할자를 보여 줍니다는 FixedPanel 컨테이너와 함께 크기가 조정 되지 않습니다.The following code example shows a horizontal splitter whose top panel is defined as a FixedPanel so that it does not resize along with the container. 가로 분할자의 다른 기본 속성도 표시 됩니다.Other basic properties of a horizontal splitter are also shown. 이 예제는에 대해 제공 된 큰 예제의 일부는 SplitContainer 클래스입니다.This example is part of a larger example provided for the SplitContainer class.

// Basic SplitContainer properties.
// This is a horizontal splitter whose top and bottom panels are ListView controls. The top panel is fixed.
splitContainer2->Dock = System::Windows::Forms::DockStyle::Fill;

// The top panel remains the same size when the form is resized.
splitContainer2->FixedPanel = System::Windows::Forms::FixedPanel::Panel1;
splitContainer2->Location = System::Drawing::Point( 0, 0 );
splitContainer2->Name = "splitContainer2";

// Create the horizontal splitter.
splitContainer2->Orientation = System::Windows::Forms::Orientation::Horizontal;
splitContainer2->Size = System::Drawing::Size( 207, 273 );
splitContainer2->SplitterDistance = 125;
splitContainer2->SplitterWidth = 6;

// splitContainer2 is the third control in the tab order.
splitContainer2->TabIndex = 2;
splitContainer2->Text = "splitContainer2";

// Basic SplitContainer properties.
// This is a horizontal splitter whose top and bottom panels are ListView controls. The top panel is fixed.
splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
// The top panel remains the same size when the form is resized.
splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1;
splitContainer2.Location = new System.Drawing.Point(0, 0);
splitContainer2.Name = "splitContainer2";
// Create the horizontal splitter.
splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal;
splitContainer2.Size = new System.Drawing.Size(207, 273);
splitContainer2.SplitterDistance = 125;
splitContainer2.SplitterWidth = 6;
// splitContainer2 is the third control in the tab order.
splitContainer2.TabIndex = 2;
splitContainer2.Text = "splitContainer2";
' Basic SplitContainer properties.
' This is a horizontal splitter whose top and bottom panels are ListView controls. The top panel is fixed.
splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill
' The top panel remains the same size when the form is resized.
splitContainer2.FixedPanel = System.Windows.Forms.FixedPanel.Panel1
splitContainer2.Location = New System.Drawing.Point(0, 0)
splitContainer2.Name = "splitContainer2"
' Create the horizontal splitter.
splitContainer2.Orientation = System.Windows.Forms.Orientation.Horizontal
splitContainer2.Size = New System.Drawing.Size(207, 273)
splitContainer2.SplitterDistance = 125
splitContainer2.SplitterWidth = 6
' splitContainer2 is the third control in the tab order.
splitContainer2.TabIndex = 2
splitContainer2.Text = "splitContainer2"

설명

이 속성을 사용 하 여 지정 SplitContainer 패널을 사용자의 컨테이너 크기를 조정 하는 경우 같은 크기를 유지 합니다.Use this property to specify which SplitContainer panel stays the same size when a user resizes the container.

적용 대상

추가 정보