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
Identifier field | TabIndexProperty |
Metadata properties set to true |
None |
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.