Share via


TabControl.GetControl(Int32) 方法

定義

在指定的位置取得 TabPage 控制項。

public:
 System::Windows::Forms::Control ^ GetControl(int index);
public System.Windows.Forms.Control GetControl (int index);
member this.GetControl : int -> System.Windows.Forms.Control
Public Function GetControl (index As Integer) As Control

參數

index
Int32

要取得之 TabPage 的索引。

傳回

位於指定位置處的 TabPage

例外狀況

index 小於零或大於 TabCount

適用於