Show / Hide Table of Contents

    Class Label

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll
    API Level:
    preview

    The Label is a widget to display text, with a simple HTML-like markup. Inherits Layout.

    public class Label : Layout, IAccessibleObject
    Inheritance
    Object
    EvasObject
    AccessibleObject
    Widget
    Container
    Layout
    Label
    Implements
    IAccessibleObject

    Constructors

    View Source

    Label(EvasObject)

    Creates and initializes a new instance of the Label class.

    Declaration
    public Label(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    The parent is a given container, which will be attached by the Label as a child. It's EvasObject type.

    API Level: preview

    Properties

    View Source

    IsEllipsis

    Sets or gets the ellipsis behavior of the label.

    Declaration
    public bool IsEllipsis { get; set; }
    Property Value
    Type Description
    Boolean
    API Level: preview
    View Source

    LineWrapType

    Sets or gets the wrapping behavior of the label.

    Declaration
    public WrapType LineWrapType { get; set; }
    Property Value
    Type Description
    WrapType
    API Level: preview
    View Source

    LineWrapWidth

    Sets or gets the wrap width of the label.

    Declaration
    public int LineWrapWidth { get; set; }
    Property Value
    Type Description
    Int32
    API Level: preview
    View Source

    SlideDuration

    Sets or gets the slide duration of the label.

    Declaration
    public double SlideDuration { get; set; }
    Property Value
    Type Description
    Double
    API Level: preview
    View Source

    SlideMode

    Sets or gets the slide mode of the Label widget.

    Declaration
    public LabelSlideMode SlideMode { get; set; }
    Property Value
    Type Description
    LabelSlideMode
    API Level: preview
    View Source

    SlideSpeed

    Sets or gets the slide speed of the label.

    Declaration
    public double SlideSpeed { get; set; }
    Property Value
    Type Description
    Double
    Remarks

    The speed of the slide animation in px per seconds. If you set the duration of the slide using elm_label_slide_duration_set(), you cannot get the correct speed using this function until the label is actually rendered and resized.

    See Also
    SlideDuration
    API Level: preview
    View Source

    TextStyle

    Sets or gets the style of the label text.

    Declaration
    public string TextStyle { get; set; }
    Property Value
    Type Description
    String
    Remarks

    APIs, elm_label_text_style_user_peek/pop/push, are internal APIs only in Tizen. Available since Tizen_4.0.

    API Level: preview

    Methods

    View Source

    CreateHandle(EvasObject)

    Sets the content at a part of a given container widget.

    Declaration
    protected override IntPtr CreateHandle(EvasObject parent)
    Parameters
    Type Name Description
    EvasObject parent

    EvasObject

    Returns
    Type Description
    IntPtr

    The new object, otherwise null if it cannot be created.

    Overrides
    Layout.CreateHandle(EvasObject)
    API Level: preview
    View Source

    PlaySlide()

    Starts the slide effect.

    Declaration
    public void PlaySlide()
    API Level: preview

    Events

    View Source

    SlideCompleted

    SlideCompleted will be triggered when the slide is completed.

    Declaration
    public event EventHandler SlideCompleted
    Event Type
    Type Description
    EventHandler
    API Level: preview

    Implements

    IAccessibleObject

    Extension Methods

    RotaryEventExtensions.AddRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.RemoveRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.Activate(EvasObject)
    RotaryEventExtensions.Deactivate(EvasObject)
    • View Source
    Back to top Copyright © 2016-2020 Samsung
    Generated by DocFX