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#
Copy
public class TabContent : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

TabContent()

Creates a new instance of TabContent.

Declaration
C#
Copy
public TabContent()
API Level: 9
View Source

TabContent(String)

Creates a new instance of TabContent with style.

Declaration
C#
Copy
public TabContent(string style)
Parameters
Type Name Description
String style

Creates TabContent by special style defined in UX.

View Source

TabContent(ControlStyle)

Creates a new instance of a TabContent with style.

Declaration
C#
Copy
public TabContent(ControlStyle style)
Parameters
Type Name Description
ControlStyle style

A style applied to the newly created TabContent.

Properties

View Source

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#
Copy
protected int SelectedIndex { get; set; }
Property Value
Type Description
Int32
View Source

ViewCount

Gets the count of views.

Declaration
C#
Copy
public int ViewCount { get; }
Property Value
Type Description
Int32
API Level: 9
View Source

Views

A list of content views.

Declaration
C#
Copy
protected IList<View> Views { get; }
Property Value
Type Description
IList<View>

Methods

View Source

AddView(View)

Adds a view to TabContent.

Declaration
C#
Copy
protected virtual void AddView(View view)
Parameters
Type Name Description
View view

A view to be added to TabContent.

View Source

Dispose(DisposeTypes)

Dispose Control and all children on it.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

Dispose type.

Overrides
View Source

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#
Copy
public 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
View Source

OnInitialize()

Overrides the parent method.

Declaration
C#
Copy
public override void OnInitialize()
Overrides
View Source

RemoveView(View)

Removes a view from TabContent.

Declaration
C#
Copy
protected virtual void RemoveView(View view)
Parameters
Type Name Description
View view

A view to be removed from TabContent.

View Source

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#
Copy
protected virtual void SelectView(int index)
Parameters
Type Name Description
Int32 index

The index of a view in TabContent where the view will be selected.

Implements

Extension Methods