Panel.TabStop 属性

定义

获取或设置一个值,该值指示用户能否使用 Tab 键将焦点放到该控件上。Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

public:
 property bool TabStop { bool get(); void set(bool value); };
public bool TabStop { get; set; }
member this.TabStop : bool with get, set
Public Property TabStop As Boolean

属性值

Boolean

如果用户可以用 Tab 键将焦点放到此控件上,则为 true;反之,则为 falsetrue if the user can give the focus to the control using the TAB key; otherwise, false. 默认值为 falseThe default is false.

注解

当用户按 TAB 键时,输入焦点设置为 TAB 键顺序中的下一个控件。When the user presses the TAB key, the input focus is set to the next control in the tab order. TabStop属性值为的控件 false 不包括在 tab 键顺序中的控件集合中。Controls with the TabStop property value of false are not included in the collection of controls in the tab order. 可以通过设置控件的属性值来操作 tab 键顺序 TabIndexThe tab order can be manipulated by setting the control's TabIndex property value.

备注

TabStop属性对控件不起任何作用, Panel 因为它是容器对象。The TabStop property has no effect on the Panel control as it is a container object.

适用于