Show / Hide Table of Contents

    Class Label

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

    Constructors

    Label()

    Declaration
    public Label()

    Properties

    FontAttributes

    Gets a value that indicates whether the font for the label is bold, italic, or neither

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

    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 as point unit

    FormattedText

    Gets or sets the formatted text for the Label.

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

    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 LineBreakMode for the Label

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

    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

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

    Methods

    Measure(Double, Double)

    Implements IMeasurable 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

    ITextable.TextColor

    Declaration
    Color ITextable.TextColor { get; set; }
    Returns
    Type Description
    Color

    Implements

    IMeasurable
    ITextable
    Back to top Copyright © 2021 Samsung
    Generated by DocFX