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.
public class Tab : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
-
- Implements
-
Constructors
Declaration
API Level: 6
View Source
Tab(String)
Creates a new instance of a Tab with style.
Declaration
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
public Tab(TabStyle tabStyle)
Parameters
Type |
Name |
Description |
TabStyle |
tabStyle |
Create Tab by style customized by user.
|
Fields
Declaration
public static readonly BindableProperty FontFamilyProperty
Field Value
Declaration
public static readonly BindableProperty ItemPaddingProperty
Field Value
Declaration
public static readonly BindableProperty ItemSpaceProperty
Field Value
Declaration
public static readonly BindableProperty PointSizeProperty
Field Value
View Source
SelectedItemIndexProperty
SelectedItemIndexProperty
Declaration
public static readonly BindableProperty SelectedItemIndexProperty
Field Value
Declaration
public static readonly BindableProperty SpaceProperty
Field Value
Declaration
public static readonly BindableProperty TextColorProperty
Field Value
View Source
TextColorSelectorProperty
TextColorSelectorProperty
Declaration
public static readonly BindableProperty TextColorSelectorProperty
Field Value
View Source
UnderLineBackgroundColorProperty
UnderLineBackgroundColorProperty
Declaration
public static readonly BindableProperty UnderLineBackgroundColorProperty
Field Value
Declaration
public static readonly BindableProperty UnderLineSizeProperty
Field Value
View Source
UseTextNaturalSizeProperty
UseTextNaturalSizeProperty
Declaration
public static readonly BindableProperty UseTextNaturalSizeProperty
Field Value
Properties
Declaration
public string FontFamily { get; set; }
Property Value
API Level: 6
View Source
ItemPadding
Item paddings in Tab. Sequence as Left, Right, Top, Bottom
Declaration
public Extents ItemPadding { get; set; }
Property Value
API Level: 6
Declaration
public int ItemSpace { get; set; }
Property Value
API Level: 6
Declaration
public float PointSize { get; set; }
Property Value
API Level: 6
View Source
SelectedItemIndex
Selected item's index in Tab.
Declaration
public int SelectedItemIndex { get; set; }
Property Value
API Level: 6
View Source
Space
Space in Tab. Sequence as Left, Right, Top, Bottom
Declaration
public Extents Space { get; set; }
Property Value
API Level: 6
Declaration
public TabStyle Style { get; }
Property Value
API Level: 8
Declaration
public Color TextColor { get; set; }
Property Value
API Level: 6
View Source
TextColorSelector
Text color selector in Tab.
Declaration
public ColorSelector TextColorSelector { get; set; }
Property Value
API Level: 6
Declaration
public View Underline { get; }
Property Value
View Source
UnderLineBackgroundColor
UnderLine view's background in Tab.
Declaration
public Color UnderLineBackgroundColor { get; set; }
Property Value
API Level: 6
View Source
UnderLineSize
UnderLine view's size in Tab.
Declaration
public Size UnderLineSize { get; set; }
Property Value
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
public bool UseTextNaturalSize { get; set; }
Property Value
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
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
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type |
Name |
Description |
ViewStyle |
viewStyle |
The style to apply.
|
Overrides
Declaration
protected override ViewStyle CreateViewStyle()
Returns
Type |
Description |
ViewStyle |
The default tab style.
|
Overrides
View Source
DeleteItem(Int32)
Delete tab item by index.
Declaration
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
protected override void Dispose(DisposeTypes type)
Parameters
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
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
protected virtual void LayoutChild()
API Level: 6
Declaration
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
public event EventHandler<Tab.ItemChangedEventArgs> ItemChangedEvent
Event Type
API Level: 6
Implements
Extension Methods