Show / Hide Table of Contents

    Class Label

    The Label class extends ElmSharp.Label to be better suited for Xamarin renderers. Mainly the formatted text support.

    Inheritance
    System.Object
    Label
    Implements
    ITextable
    IMeasurable
    IBatchable
    Namespace: Tizen.UIExtensions.ElmSharp
    Assembly: Tizen.UIExtensions.ElmSharp.dll
    Syntax
    public class Label : ElmSharp.Label, ITextable, IMeasurable, IBatchable

    Constructors

    Label(EvasObject)

    Initializes a new instance of the Label class.

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

    Parent evas object.

    Properties

    FontAttributes

    Gets or sets the font attributes.

    Declaration
    public FontAttributes FontAttributes { get; set; }
    Property Value
    Type Description
    FontAttributes

    The font attributes.

    FontFamily

    Gets or sets the font family for the text.

    Declaration
    public string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    The font family.

    FontSize

    Gets or sets the font size for the text.

    Declaration
    public double FontSize { get; set; }
    Property Value
    Type Description
    System.Double

    The size of the font.

    FormattedText

    Get or sets the formatted text.

    Declaration
    public FormattedString FormattedText { get; set; }
    Property Value
    Type Description
    FormattedString

    The formatted text.

    Remarks

    Setting FormattedText changes the value of the Text property.

    HorizontalTextAlignment

    Gets or sets the horizontal text alignment.

    Declaration
    public TextAlignment HorizontalTextAlignment { get; set; }
    Property Value
    Type Description
    TextAlignment

    The horizontal text alignment.

    LineBreakMode

    Gets or sets the line wrap option.

    Declaration
    public LineBreakMode LineBreakMode { get; set; }
    Property Value
    Type Description
    LineBreakMode

    The line break mode.

    LineHeight

    Gets or sets the line height.

    Declaration
    public double LineHeight { get; set; }
    Property Value
    Type Description
    System.Double

    Text

    Gets or sets the text.

    Declaration
    public override string Text { get; set; }
    Property Value
    Type Description
    System.String

    The content of the label.

    Remarks

    Setting Text overwrites the value of the FormattedText property too.

    TextBackgroundColor

    Gets or sets the background color for the text.

    Declaration
    public Color TextBackgroundColor { get; set; }
    Property Value
    Type Description
    Color

    The color of the label's background.

    TextColor

    Gets or sets the color of the formatted text.

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

    The color of the text.

    TextDecorations

    Gets or sets the TextDecorations applied to Text.

    Declaration
    public TextDecorations TextDecorations { get; set; }
    Property Value
    Type Description
    TextDecorations

    VerticalTextAlignment

    Gets or sets the vertical text alignment.

    Declaration
    public TextAlignment VerticalTextAlignment { get; set; }
    Property Value
    Type Description
    TextAlignment

    The vertical text alignment.

    Methods

    Measure(Double, Double)

    Implements to provide a desired size of the label.

    Declaration
    public Size Measure(double availableWidth, double availableHeight)
    Parameters
    Type Name Description
    System.Double availableWidth

    Available width.

    System.Double availableHeight

    Available height.

    Returns
    Type Description
    Size

    Size of the control that fits the available area.

    Explicit Interface Implementations

    IBatchable.OnBatchCommitted()

    Declaration
    void IBatchable.OnBatchCommitted()

    Implements

    ITextable
    IMeasurable
    IBatchable

    Extension Methods

    BatchableExtensions.BatchBegin(IBatchable)
    BatchableExtensions.BatchCommit(IBatchable)
    BatchableExtensions.IsBatched(IBatchable)
    Back to top Copyright © 2021 Samsung
    Generated by DocFX