SplitContainer.Panel2 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據情況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
屬性值
若 Orientation 是 Vertical,則為 的右側面板 SplitContainer。 若 Orientation 是 Horizontal,則 的底部面板 SplitContainer。
備註
使用該 Panel2 屬性來配置垂直面板 SplitContainer 的右側面板或水平面板 SplitContainer的底部面板。 例如,你可以透過改變屬性值Panel2MinSize來指定面板的最小尺寸,設定Panel2FixedPanel屬性為讓容器大小不變,或者你也可以取得面板BackgroundImage和BackgroundImageLayout屬性。
你無法從 Panel2SplitContainer.
備註
若Panel1Panel2或包含任何可接收對焦的控制裝置,點擊時對焦仍會留在分配器上。 要將焦點改為Panel1或Panel2,將屬性Panel2設TabIndex為0,TabIndexPanel1屬性設為1。