次の方法で共有


SplitContainer.Panel2 プロパティ

定義

Orientationに応じて、SplitContainerの右側または下部のパネルを取得します。

public:
 property System::Windows::Forms::SplitterPanel ^ Panel2 { System::Windows::Forms::SplitterPanel ^ get(); };
public System.Windows.Forms.SplitterPanel Panel2 { get; }
member this.Panel2 : System.Windows.Forms.SplitterPanel
Public ReadOnly Property Panel2 As SplitterPanel

プロパティ値

OrientationVerticalされている場合は、SplitContainerの右側のパネル。 OrientationHorizontalされている場合は、SplitContainerの下部パネル。

注釈

Panel2 プロパティを使用して、垂直SplitContainerの右側のパネルまたは水平方向のSplitContainerの下部パネルを構成します。 たとえば、 Panel2MinSize プロパティの値を変更してパネルの最小サイズを指定したり、 FixedPanel プロパティを Panel2 に設定して、コンテナーのサイズを変更してもパネルのサイズが同じになるようにしたり、パネルの BackgroundImage プロパティと BackgroundImageLayout プロパティを取得または設定したりできます。

SplitContainerからPanel2を削除することはできません。

Panel1またはPanel2にフォーカスを受け取ることができるコントロールが含まれている場合、フォーカスはクリックされたときにスプリッターに残ります。 フォーカスをPanel1またはPanel2に変更するには、Panel2TabIndexプロパティを 0 に、Panel1TabIndexプロパティを 1 に設定します。

適用対象

こちらもご覧ください