Struct TextFit

    Definition

    Namespace:
    Tizen.NUI.Text
    Assembly:
    Tizen.NUI.dll

    A struct to pass data of TextFit PropertyMap.

    public struct TextFit : IEquatable<TextFit>
    Implements
    IEquatable<><TextFit>
    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    Properties

    View Source

    Enable

    True to enable the text fit or false to disable (the default value is false).

    Declaration
    public bool Enable { readonly get; set; }
    Property Value
    Type Description
    bool
    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    View Source

    FontSize

    Font Size for text fit

    Declaration
    public float? FontSize { readonly get; set; }
    Property Value
    Type Description
    float?
    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    View Source

    FontSizeType

    The size type of font, PointSize or PixelSize (the default value is PointSize).

    Declaration
    public FontSizeType FontSizeType { readonly get; set; }
    Property Value
    Type Description
    FontSizeType
    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    View Source

    MaxSize

    Maximum Size for text fit (if null, the default value is 100.0f).

    Declaration
    public float? MaxSize { readonly get; set; }
    Property Value
    Type Description
    float?
    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    View Source

    MinSize

    Minimum Size for text fit (if null, the default value is 10.0f).

    Declaration
    public float? MinSize { readonly get; set; }
    Property Value
    Type Description
    float?
    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    View Source

    StepSize

    Step Size for font increase (if null, the default value is 1.0f).

    Declaration
    public float? StepSize { readonly get; set; }
    Property Value
    Type Description
    float?
    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    Methods

    View Source

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if equal TextFit, else false.

    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    View Source

    Equals(TextFit)

    Determines whether the specified object is equal to the current object.

    Declaration
    public bool Equals(TextFit other)
    Parameters
    Type Name Description
    TextFit other

    The TextFit to compare with the current TextFit.

    Returns
    Type Description
    bool

    true if equal TextFit, else false.

    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    View Source

    GetHashCode()

    Gets the hash code of this TextFit.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code.

    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    Operators

    View Source

    operator ==(TextFit, TextFit)

    The == operator.

    Declaration
    public static bool operator ==(TextFit lhsTextFit, TextFit rhsTextFit)
    Parameters
    Type Name Description
    TextFit lhsTextFit

    TextFit to compare

    TextFit rhsTextFit

    TextFit to be compared

    Returns
    Type Description
    bool

    true if TextFits are equal

    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    View Source

    operator !=(TextFit, TextFit)

    The != operator.

    Declaration
    public static bool operator !=(TextFit lhsTextFit, TextFit rhsTextFit)
    Parameters
    Type Name Description
    TextFit lhsTextFit

    TextFit to compare

    TextFit rhsTextFit

    TextFit to be compared

    Returns
    Type Description
    bool

    true if TextFits are not equal

    Remarks

    The TextFit struct is used as an argument to SetTextFit and GetTextFit methods.
    See SetTextFit(TextFit) and GetTextFit().

    Implements

    IEquatable<>

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX