SplitContainer.FixedPanel Özellik

Tanım

Kapsayıcı yeniden boyutlandırıldığında hangi SplitContainer panelin aynı boyutta kalacağını alır veya ayarlar.

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

Özellik Değeri

FixedPanel

değerlerinden FixedPanelbiri. None varsayılan değerdir.

Özel durumlar

Atanan değer değerlerden FixedPanel biri değildir.

Örnekler

Aşağıdaki kod örneği, kapsayıcıyla birlikte yeniden boyutlandırılmaması için üst paneli bir FixedPanel olarak tanımlanan yatay ayırıcıyı gösterir. Yatay ayırıcının diğer temel özellikleri de gösterilir. Bu örnek, sınıfı için SplitContainer sağlanan daha büyük bir örneğin bir parçasıdır.

// 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"

Açıklamalar

Kullanıcı kapsayıcıyı yeniden boyutlandırdığında hangi SplitContainer panelin aynı boyutta kalacağını belirtmek için bu özelliği kullanın.

Şunlara uygulanır

Ayrıca bkz.