Back to Devexpress

DXTabControl.GetTabItem(Int32) Method

wpf-devexpress-dot-xpf-dot-core-dot-dxtabcontrol-dot-gettabitem-x28-system-dot-int32-x29.md

latest2.0 KB
Original Source

DXTabControl.GetTabItem(Int32) Method

Returns a tab item by its index.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public DXTabItem GetTabItem(
    int index
)
vb
Public Function GetTabItem(
    index As Integer
) As DXTabItem

Parameters

NameTypeDescription
indexInt32

A zero-based integer value that specifies the tab item’s index.

|

Returns

TypeDescription
DXTabItem

A DXTabItem object, that is a tab item with the specified index; null ( Nothing in Visual Basic) if the specified index is out of range.

|

Remarks

Use the GetTabItem method to obtain a tab item, when tab control’s data items are not the DXTabItem type. This happens when the tab control is bound to a data source, or when its Items collection has been manually filled with arbitrary objects. In this instance, the GetTabItem method returns a DXTabItem object, obtained from a data item with the specified index, using the template specified by the ItemTemplate property.

To obtain a tab item by a data item, use another overload of the GetTabItem method that takes the item parameter.

See Also

DXTabItem

DXTabControl Class

DXTabControl Members

DevExpress.Xpf.Core Namespace