SplitContainer.FixedPanel プロパティ
メモ : このプロパティは、.NET Framework version 2.0 で新しく追加されたものです。
コンテナのサイズが変更されてもサイズ変更されない SplitContainer パネルを取得または設定します。
名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文
Dim instance As SplitContainer Dim value As FixedPanel value = instance.FixedPanel instance.FixedPanel = value
/** @property */ public FixedPanel get_FixedPanel () /** @property */ public void set_FixedPanel (FixedPanel value)



次のコード例では、上側パネルがコンテナに合わせてサイズ変更されないよう FixedPanel に設定されている水平方向の分割線を示します。また、水平方向の分割線の他の基本的なプロパティも示します。このコード例は、SplitContainer クラスのトピックで取り上げているコード例の一部分です。
' 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";
// 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.set_Dock(System.Windows.Forms.DockStyle.Fill); // The top panel remains the same size when the form is resized. splitContainer2.set_FixedPanel(System.Windows.Forms. FixedPanel.Panel1); splitContainer2.set_Location(new System.Drawing.Point(0, 0)); splitContainer2.set_Name("splitContainer2"); // Create the horizontal splitter. splitContainer2.set_Orientation(System.Windows.Forms. Orientation.Horizontal); splitContainer2.set_Size(new System.Drawing.Size(207, 273)); splitContainer2.set_SplitterDistance(125); splitContainer2.set_SplitterWidth(6); // splitContainer2 is the third control in the tab order. splitContainer2.set_TabIndex(2); splitContainer2.set_Text("splitContainer2");

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- SplitContainer.FixedPanel プロパティのページへのリンク