Struct FontStyle

    Definition

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

    A struct to pass data of FontStyle PropertyMap.

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

    The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
    See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().

    Properties

    View Source

    Slant

    The Slant defines whether to use italics.

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

    The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
    See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().

    View Source

    Weight

    The Weight defines the thickness or darkness of the glyphs.

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

    The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
    See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().

    View Source

    Width

    The Width defines occupied by each glyph.

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

    The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
    See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().

    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 FontStyle, else false.

    Remarks

    The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
    See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().

    View Source

    Equals(FontStyle)

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

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

    The FontStyle to compare with the current FontStyle.

    Returns
    Type Description
    bool

    true if equal FontStyle, else false.

    Remarks

    The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
    See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().

    View Source

    GetHashCode()

    Gets the hash code of this FontStyle.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code.

    Remarks

    The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
    See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().

    Operators

    View Source

    operator ==(FontStyle, FontStyle)

    The == operator.

    Declaration
    public static bool operator ==(FontStyle lhsFontStyle, FontStyle rhsFontStyle)
    Parameters
    Type Name Description
    FontStyle lhsFontStyle

    FontStyle to compare

    FontStyle rhsFontStyle

    FontStyle to be compared

    Returns
    Type Description
    bool

    true if FontStyles are equal

    Remarks

    The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
    See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().

    View Source

    operator !=(FontStyle, FontStyle)

    The != operator.

    Declaration
    public static bool operator !=(FontStyle lhsFontStyle, FontStyle rhsFontStyle)
    Parameters
    Type Name Description
    FontStyle lhsFontStyle

    FontStyle to compare

    FontStyle rhsFontStyle

    FontStyle to be compared

    Returns
    Type Description
    bool

    true if FontStyles are not equal

    Remarks

    The FontStyle struct is used as an argument to SetFontStyle and GetFontStyle methods.
    See SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle), GetFontStyle(), SetFontStyle(FontStyle) and GetFontStyle().

    Implements

    IEquatable<>

    Extension Methods

    EXamlExtensions.LoadFromEXaml<T>(T, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    EXamlExtensions.LoadFromEXamlPath<TXaml>(TXaml, string)
    EXamlExtensions.LoadFromEXamlPath<T>(T, Type)
    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