SplitContainer.Panel2 Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the right or bottom panel of the SplitContainer, depending on 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
Property Value
If Orientation is Vertical
, the right panel of the SplitContainer. If Orientation is Horizontal
, the bottom panel of the SplitContainer.
Remarks
Use the Panel2 property to configure the right panel of a vertical SplitContainer or the bottom panel of a horizontal SplitContainer. For example, you can specify the minimum size of the panel by changing the value of the Panel2MinSize property, set the FixedPanel property to Panel2
so that the panel remains the same size when the container is resized, or you can get or set the panel's BackgroundImage and BackgroundImageLayout properties.
You cannot remove Panel2 from the SplitContainer.
Note
If Panel1 or Panel2 contains no control that can receive the focus, the focus remains on the splitter when it is clicked. To change the focus to Panel1 or Panel2, set the TabIndex property of Panel2 to 0 and the TabIndex property of Panel1 to 1.
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應