Class TextLabelExtensions

    Definition

    Namespace:
    Tizen.NUI.Extension
    Assembly:
    Tizen.NUI.Extension.dll

    Markup extensions for View.

    public static class TextLabelExtensions
    Inheritance
    object
    TextLabelExtensions

    Methods

    View Source

    AutoScrollGap<T>(T, float)

    The AutoScrollGap property.
    Gap before scrolling wraps.

    Declaration
    public static T AutoScrollGap<T>(this T view, float gap) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    float gap

    The gap value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    AutoScrollLoopCount<T>(T, int)

    The AutoScrollLoopCount property.
    Number of complete loops when scrolling enabled.

    Declaration
    public static T AutoScrollLoopCount<T>(this T view, int count) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    int count

    The count value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    AutoScrollLoopDelay<T>(T, float)

    The AutoScrollLoopDelay.
    The amount of time to delay the starting time of auto scrolling and further loops.

    Declaration
    public static T AutoScrollLoopDelay<T>(this T view, float delay) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    float delay

    The delay value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    AutoScrollSpeed<T>(T, int)

    The AutoScrollSpeed property.
    Sets the speed of scrolling in pixels per second.

    Declaration
    public static T AutoScrollSpeed<T>(this T view, int speed) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    int speed

    The speed value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    AutoScrollStopMode<T>(T, AutoScrollStopMode)

    The AutoScrollLoopCount property.
    Number of complete loops when scrolling enabled.

    Declaration
    public static T AutoScrollStopMode<T>(this T view, AutoScrollStopMode mode) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    AutoScrollStopMode mode

    The AutoScrollStopMode value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    Ellipsis<T>(T, bool)

    The Ellipsis.
    Enable or disable the ellipsis.

    Declaration
    public static T Ellipsis<T>(this T view, bool enabled) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    bool enabled

    The ellipsis value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    EllipsisPosition<T>(T, EllipsisPosition)

    Specifies which portion of the text should be replaced with an ellipsis when the text size exceeds the layout size.

    Declaration
    public static T EllipsisPosition<T>(this T view, EllipsisPosition position) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    EllipsisPosition position

    The position value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    EnableAutoScroll<T>(T, bool)

    The EnableAutoScroll property.
    Starts or stops auto scrolling.

    Declaration
    public static T EnableAutoScroll<T>(this T view, bool enabled) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    bool enabled

    The auto scroll enabled value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    EnableFontSizeScale<T>(T, bool)

    Enable FontSizeScale to TextLabel.
    Whether the font size scale is enabled. (The default value is true)

    Declaration
    public static T EnableFontSizeScale<T>(this T view, bool enabled) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    bool enabled

    The font size scale enabled value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    EnableMarkup<T>(T, bool)

    Whether the mark-up processing is enabled.

    Declaration
    public static T EnableMarkup<T>(this T view, bool markup) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    bool markup

    The blink value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    FontFamily<T>(T, string)

    The requested font family to use.

    Declaration
    public static T FontFamily<T>(this T view, string family) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    string family

    The font family value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    FontSize<T>(T, float)

    The size of font in pixels.

    Declaration
    public static T FontSize<T>(this T view, float size) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    float size

    The size value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    FontStyle<T>(T, FontWidthType, FontWeightType, FontSlantType)

    Set FontStyle to TextLabel.

    Declaration
    public static T FontStyle<T>(this T view, FontWidthType width, FontWeightType weight, FontSlantType slant) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    FontWidthType width

    The font width value.

    FontWeightType weight

    The font weight value.

    FontSlantType slant

    The font slant value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    LineSpacing<T>(T, float)

    The LineSpacing property.
    The default extra space between lines in points.

    Declaration
    public static T LineSpacing<T>(this T view, float spacing) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    float spacing

    The spacing value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    LineWrapMode<T>(T, LineWrapMode)

    The LineWrapMode property.
    line wrap mode when the text lines over layout width.

    Declaration
    public static T LineWrapMode<T>(this T view, LineWrapMode mode) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    LineWrapMode mode

    The mode value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    MultiLine<T>(T, bool)

    The MultiLine property.
    The single-line or multi-line layout option.

    Declaration
    public static T MultiLine<T>(this T view, bool multiline) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    bool multiline

    The multiline value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    Text<T>(T, string)

    The text to display in the UTF-8 format.

    Declaration
    public static T Text<T>(this T view, string text) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    string text

    The text value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    TextAlignment<T>(T, HorizontalAlignment, VerticalAlignment)

    The line vertical alignment.

    Declaration
    public static T TextAlignment<T>(this T view, HorizontalAlignment horizontal, VerticalAlignment vertical) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    HorizontalAlignment horizontal

    The horizontal value.

    VerticalAlignment vertical

    The vertical value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    TextColor(TextLabel)

    Gets the color for the text of the View.

    Declaration
    public static UIColor TextColor(this TextLabel view)
    Parameters
    Type Name Description
    TextLabel view

    The extension target.

    Returns
    Type Description
    UIColor

    The text color value.

    View Source

    TextColor<T>(T, float, float, float, float)

    The color of the text.

    Declaration
    public static T TextColor<T>(this T view, float r, float g, float b, float a = 1) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    float r

    The red component.

    float g

    The green component.

    float b

    The blue component.

    float a

    The alpha component.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    TextColor<T>(T, uint, float)

    The color of the text.

    Declaration
    public static T TextColor<T>(this T view, uint value, float alpha) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    uint value

    The value of 0xRRGGBB format.

    float alpha

    The alpha value between 0.0 and 1.0.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    Examples
        new UIColor(0xFF0000, 1f); // Solid red
        new UIColor(0x00FF00, 0.5f) // Half transparent green
    View Source

    TextColor<T>(T, UIColor)

    The color of the text.

    Declaration
    public static T TextColor<T>(this T view, UIColor color) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    UIColor color

    The color value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    View Source

    TranslatableText<T>(T, string)

    The text can set the SID value.

    Declaration
    public static T TranslatableText<T>(this T view, string text) where T : TextLabel
    Parameters
    Type Name Description
    T view

    The extension target.

    string text

    The text value.

    Returns
    Type Description
    T

    The view itself.

    Type Parameters
    Name Description
    T

    The type of the view.

    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX