Form.TabIndex Form.TabIndex Form.TabIndex Form.TabIndex Property

定义

获取或设置控件在其容器内的 Tab 键顺序。Gets or sets the tab order of the control within its container.

public:
 property int TabIndex { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public int TabIndex { get; set; }
member this.TabIndex : int with get, set
Public Property TabIndex As Integer

属性值

Int32,它包含其容器内按 Tab 键顺序包括的控件集内的控件索引。An Int32 containing the index of the control within the set of controls within its container that is included in the tab order.

注解

Tab 键顺序不包括窗体。Forms are not included in the tab order. 设置TabIndex属性不执行任何操作。Setting the TabIndex property does nothing.

适用于