Control.TabIndex 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 or sets a value that determines the order in which elements receive focus when the user navigates through controls by using the TAB key.
public:
property int TabIndex { int get(); void set(int value); };
[System.ComponentModel.Bindable(true)]
public int TabIndex { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.TabIndex : int with get, set
Public Property TabIndex As Integer
Property Value
A value that determines the order of logical navigation for a device. The default value is Int32.MaxValue.
- Attributes
Examples
The following example sets the tab index of three buttons.
<Button Name="btn9" BorderThickness="5.0"
Click="ChangeBorderThickness" TabIndex="2">
BorderThickness
</Button>
<Button Name="btn10" FontStretch ="Condensed"
Click="ChangeFontStretch" TabIndex="3">
FontStretch
</Button>
<Button Name="btn11" Padding = "5"
Click="ChangePadding" TabIndex="1">
Padding
</Button>
Remarks
A control with a lower tab index receives focus before a control with a higher index.
Dependency Property Information
Item | Value |
---|---|
Identifier field | TabIndexProperty |
Metadata properties set to true |
None |
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET