Class TabContent
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 9
TabContent is a class which contains a set of Views and has one of them selected.
C#Copypublic class TabContent : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic TabContent()
API Level: 9
Declaration
C#Copypublic TabContent(string style)
Parameters
Type | Name | Description |
---|---|---|
String | style | Creates TabContent by special style defined in UX. |
Declaration
C#Copypublic TabContent(ControlStyle style)
Parameters
Type | Name | Description |
---|---|---|
ControlStyle | style | A style applied to the newly created TabContent. |
Properties
SelectedIndex
The index of the selected view. The indices of views in TabContent are basically the order of adding to TabContent by AddTab(TabButton, View). So a view's index in TabContent can be changed whenever AddTab(TabButton, View) or RemoveTab(Int32) is called.
Declaration
C#Copyprotected int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Declaration
C#Copypublic int ViewCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 9
Declaration
C#Copyprotected IList<View> Views { get; }
Property Value
Type | Description |
---|---|
IList<View> |
Methods
Declaration
C#Copyprotected virtual void AddView(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | A view to be added to TabContent. |
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | Dispose type. |
Overrides
GetView(Int32)
Gets the view at the specified index of TabContent. The indices of views in TabContent are basically the order of adding to TabContent by AddTab(TabButton, View). So a view's index in TabContent can be changed whenever AddTab(TabButton, View) or RemoveTab(Int32) is called.
Declaration
C#Copypublic View GetView(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of a view in TabContent where the specified view exists. |
Returns
Type | Description |
---|---|
View |
API Level: 9
Declaration
C#Copypublic override void OnInitialize()
Overrides
Declaration
C#Copyprotected virtual void RemoveView(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | A view to be removed from TabContent. |
SelectView(Int32)
Selects a view at the specified index of TabContent. The indices of views in TabContent are basically the order of adding to TabContent by AddTab(TabButton, View). So a view's index in TabContent can be changed whenever AddTab(TabButton, View) or RemoveTab(Int32) is called.
Declaration
C#Copyprotected virtual void SelectView(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of a view in TabContent where the view will be selected. |