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

无法 Panel2 从 . SplitContainer中删除 。

备注

Panel2如果Panel1或不包含任何可接收焦点的控件,则单击焦点时焦点将保留在拆分器上。 若要将焦点Panel1更改为或Panel2将属性Panel2设置为 TabIndex 0,并将TabIndex属性Panel1设置为 1。

适用于

另请参阅