Class Tab

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll
API Level:
6

Tab is one kind of common component, it can be used as menu label. User can handle Tab by adding/inserting/deleting TabItem.

C#
Copy
public class Tab : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

Tab()

Creates a new instance of a Tab.

Declaration
C#
Copy
public Tab()
API Level: 6
View Source

Tab(String)

Creates a new instance of a Tab with style.

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

Create Tab by special style defined in UX.

View Source

Tab(TabStyle)

Creates a new instance of a Tab with style.

Declaration
C#
Copy
public Tab(TabStyle tabStyle)
Parameters
Type Name Description
TabStyle tabStyle

Create Tab by style customized by user.

Fields

View Source

FontFamilyProperty

FontFamilyProperty

Declaration
C#
Copy
public static readonly BindableProperty FontFamilyProperty
Field Value
Type Description
BindableProperty
View Source

ItemPaddingProperty

ItemPaddingProperty

Declaration
C#
Copy
public static readonly BindableProperty ItemPaddingProperty
Field Value
Type Description
BindableProperty
View Source

ItemSpaceProperty

ItemSpaceProperty

Declaration
C#
Copy
public static readonly BindableProperty ItemSpaceProperty
Field Value
Type Description
BindableProperty
View Source

PointSizeProperty

PointSizeProperty

Declaration
C#
Copy
public static readonly BindableProperty PointSizeProperty
Field Value
Type Description
BindableProperty
View Source

SelectedItemIndexProperty

SelectedItemIndexProperty

Declaration
C#
Copy
public static readonly BindableProperty SelectedItemIndexProperty
Field Value
Type Description
BindableProperty
View Source

SpaceProperty

SpaceProperty

Declaration
C#
Copy
public static readonly BindableProperty SpaceProperty
Field Value
Type Description
BindableProperty
View Source

TextColorProperty

TextColorProperty

Declaration
C#
Copy
public static readonly BindableProperty TextColorProperty
Field Value
Type Description
BindableProperty
View Source

TextColorSelectorProperty

TextColorSelectorProperty

Declaration
C#
Copy
public static readonly BindableProperty TextColorSelectorProperty
Field Value
Type Description
BindableProperty
View Source

UnderLineBackgroundColorProperty

UnderLineBackgroundColorProperty

Declaration
C#
Copy
public static readonly BindableProperty UnderLineBackgroundColorProperty
Field Value
Type Description
BindableProperty
View Source

UnderLineSizeProperty

UnderLineSizeProperty

Declaration
C#
Copy
public static readonly BindableProperty UnderLineSizeProperty
Field Value
Type Description
BindableProperty
View Source

UseTextNaturalSizeProperty

UseTextNaturalSizeProperty

Declaration
C#
Copy
public static readonly BindableProperty UseTextNaturalSizeProperty
Field Value
Type Description
BindableProperty

Properties

View Source

FontFamily

Text font family in Tab.

Declaration
C#
Copy
public string FontFamily { get; set; }
Property Value
Type Description
String
API Level: 6
View Source

ItemPadding

Item paddings in Tab. Sequence as Left, Right, Top, Bottom

Declaration
C#
Copy
public Extents ItemPadding { get; set; }
Property Value
Type Description
Extents
API Level: 6
View Source

ItemSpace

Gap between items.

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

PointSize

Text point size in Tab.

Declaration
C#
Copy
public float PointSize { get; set; }
Property Value
Type Description
Single
API Level: 6
View Source

SelectedItemIndex

Selected item's index in Tab.

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

Space

Space in Tab. Sequence as Left, Right, Top, Bottom

Declaration
C#
Copy
public Extents Space { get; set; }
Property Value
Type Description
Extents
API Level: 6
View Source

Style

Return currently applied style.

Declaration
C#
Copy
public TabStyle Style { get; }
Property Value
Type Description
TabStyle
Remarks

Modifying contents in style may cause unexpected behaviour.

API Level: 8
View Source

TextColor

Text color in Tab.

Declaration
C#
Copy
public Color TextColor { get; set; }
Property Value
Type Description
Color
API Level: 6
View Source

TextColorSelector

Text color selector in Tab.

Declaration
C#
Copy
public ColorSelector TextColorSelector { get; set; }
Property Value
Type Description
ColorSelector
API Level: 6
View Source

Underline

Get underline of Tab.

Declaration
C#
Copy
public View Underline { get; }
Property Value
Type Description
View
View Source

UnderLineBackgroundColor

UnderLine view's background in Tab.

Declaration
C#
Copy
public Color UnderLineBackgroundColor { get; set; }
Property Value
Type Description
Color
API Level: 6
View Source

UnderLineSize

UnderLine view's size in Tab.

Declaration
C#
Copy
public Size UnderLineSize { get; set; }
Property Value
Type Description
Size
API Level: 6
View Source

UseTextNaturalSize

Flag to decide if TabItem is adjusted by text's natural width. If true, TabItem's width will be equal as text's natural width, if false, it will be decided by Tab's width and tab item count.

Declaration
C#
Copy
public bool UseTextNaturalSize { get; set; }
Property Value
Type Description
Boolean
API Level: 6

Methods

View Source

AddItem(Tab.TabItemData)

Add tab item by item data. The added item will be added to end of all items automatically.

Declaration
C#
Copy
public void AddItem(Tab.TabItemData itemData)
Parameters
Type Name Description
Tab.TabItemData itemData

Item data which will apply to tab item view.

API Level: 6
View Source

ApplyStyle(ViewStyle)

Apply style to tab.

Declaration
C#
Copy
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type Name Description
ViewStyle viewStyle

The style to apply.

Overrides
View Source

CreateViewStyle()

Get Tab style.

Declaration
C#
Copy
protected override ViewStyle CreateViewStyle()
Returns
Type Description
ViewStyle

The default tab style.

Overrides
View Source

DeleteItem(Int32)

Delete tab item by index.

Declaration
C#
Copy
public void DeleteItem(int itemIndex)
Parameters
Type Name Description
Int32 itemIndex

Position index where will be deleted.

API Level: 6
View Source

Dispose(DisposeTypes)

Dispose Tab and all children on it.

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

Dispose type.

Overrides
API Level: 6
View Source

InsertItem(Tab.TabItemData, Int32)

Insert tab item by item data. The inserted item will be added to the special position by index automatically.

Declaration
C#
Copy
public void InsertItem(Tab.TabItemData itemData, int index)
Parameters
Type Name Description
Tab.TabItemData itemData

Item data which will apply to tab item view.

Int32 index

Position index where will be inserted.

API Level: 6
View Source

LayoutChild()

Layout child in Tab and it can be override by user.

Declaration
C#
Copy
protected virtual void LayoutChild()
API Level: 6
View Source

OnUpdate()

Update Tab.

Declaration
C#
Copy
protected override void OnUpdate()
Overrides
API Level: 6

Events

View Source

ItemChangedEvent

An event for the item changed signal which can be used to subscribe or unsubscribe the event handler provided by the user.

Declaration
C#
Copy
public event EventHandler<Tab.ItemChangedEventArgs> ItemChangedEvent
Event Type
Type Description
EventHandler<Tab.ItemChangedEventArgs>
API Level: 6

Implements

Extension Methods