Class Tab

    Definition

    Namespace:
    Tizen.NUI.Components
    Assembly:
    Tizen.NUI.Components.dll

    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, INotifyPropertyChanged, IDisposable
    Inheritance
    object
    Tizen.NUI.Binding.BindableObject
    Tizen.NUI.Binding.Element
    BaseHandle
    Animatable
    Container
    View
    ViewWrapper
    CustomView
    VisualView
    Tizen.NUI.Components.Control
    Tab
    Implements
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable

    Constructors

    View Source

    Tab()

    Creates a new instance of a Tab.

    Declaration
    public Tab()

    Properties

    View Source

    FontFamily

    Text font family in Tab.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    string
    View Source

    ItemSpace

    Gap between items.

    Declaration
    public int ItemSpace { get; set; }
    Property Value
    Type Description
    int
    View Source

    PointSize

    Text point size in Tab.

    Declaration
    public float PointSize { get; set; }
    Property Value
    Type Description
    float
    View Source

    SelectedItemIndex

    Selected item's index in Tab.

    Declaration
    public int SelectedItemIndex { get; set; }
    Property Value
    Type Description
    int
    View Source

    Space

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

    Declaration
    public Extents Space { get; set; }
    Property Value
    Type Description
    Extents
    View Source

    TextColor

    Text color in Tab.

    Declaration
    public Color TextColor { get; set; }
    Property Value
    Type Description
    Color
    View Source

    TextColorSelector

    Text color selector in Tab.

    Declaration
    public ColorSelector TextColorSelector { get; set; }
    Property Value
    Type Description
    Tizen.NUI.Components.ColorSelector
    View Source

    UnderLineBackgroundColor

    UnderLine view's background in Tab.

    Declaration
    public Color UnderLineBackgroundColor { get; set; }
    Property Value
    Type Description
    Color
    View Source

    UnderLineSize

    UnderLine view's size in Tab.

    Declaration
    public Size UnderLineSize { get; set; }
    Property Value
    Type Description
    Size
    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
    Type Description
    bool

    Methods

    View Source

    AddItem(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.

    View Source

    DeleteItem(int)

    Delete tab item by index.

    Declaration
    public void DeleteItem(int itemIndex)
    Parameters
    Type Name Description
    int itemIndex

    Position index where will be deleted.

    View Source

    Dispose(DisposeTypes)

    Dispose Tab and all children on it.

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

    Dispose type.

    Overrides
    Tizen.NUI.Components.Control.Dispose(Tizen.NUI.DisposeTypes)
    View Source

    InsertItem(TabItemData, int)

    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.

    int index

    Position index where will be inserted.

    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
    Type Description
    System.EventHandler<TEventArgs><Tab.ItemChangedEventArgs>

    Implements

    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX