SplitContainer.Panel2 屬性

定義

根據 SplitContainer 取得 Orientation 的右方或下方面板。

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

屬性值

SplitterPanel

如果 OrientationVertical,則為 SplitContainer 的右方面板。 如果 OrientationHorizontal,則為 SplitContainer 的下方面板。

備註

Panel2使用 屬性來設定水準 SplitContainer 垂直或底部面板的 SplitContainer 右面板。 例如,您可以藉由變更 Panel2MinSize 屬性值來指定面板的大小下限、將 屬性設定 FixedPanelPanel2 ,讓面板在調整容器大小時維持相同的大小,或者您可以取得或設定面板 BackgroundImage 的 和 BackgroundImageLayout 屬性。

您無法從 SplitContainer 移除 Panel2

注意

如果 Panel1Panel2 不包含可接收焦點的控制項,當按一下焦點時,焦點會保留在分割器上。 若要將焦點變更為 Panel1Panel2 ,請將 TabIndexPanel2 屬性設定為 0,並將 TabIndexPanel1 屬性設定為 1。

適用於

另請參閱