SplitContainer.Panel1 屬性

定義

根據 SplitContainer 取得 Orientation 的左方或上方面板。

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

屬性值

SplitterPanel

如果 OrientationVertical,則為 SplitContainer 的左方面板。 如果 OrientationHorizontal,則為 SplitContainer 的上方面板。

備註

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

您無法從 SplitContainer 移除 Panel1

注意

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

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

適用於

另請參閱