共用方式為


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來指定面板的最小尺寸,設定Panel2FixedPanel屬性為讓容器大小不變,或者你也可以取得面板BackgroundImageBackgroundImageLayout屬性。

你無法從 Panel2SplitContainer.

備註

Panel1Panel2或包含任何可接收對焦的控制裝置,點擊時對焦仍會留在分配器上。 要將焦點改為Panel1Panel2,將屬性Panel2TabIndex為0,TabIndexPanel1屬性設為1。

適用於

另請參閱