Class FontWeight | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class FontWeight

    Inheritance
    System.Object
    FontWeight
    Namespace: Unity.UIWidgets.ui
    Syntax
    public class FontWeight : IEquatable<FontWeight>

    Fields

    bold

    Declaration
    public static readonly FontWeight bold
    Field Value
    Type Description
    FontWeight

    index

    Declaration
    public readonly int index
    Field Value
    Type Description
    System.Int32

    indexToFontWeight

    Declaration
    public static readonly Dictionary<int, int> indexToFontWeight
    Field Value
    Type Description
    System.Collections.Generic.Dictionary<System.Int32, System.Int32>

    normal

    Declaration
    public static readonly FontWeight normal
    Field Value
    Type Description
    FontWeight

    values

    Declaration
    public static readonly List<FontWeight> values
    Field Value
    Type Description
    System.Collections.Generic.List<FontWeight>

    w100

    Declaration
    public static readonly FontWeight w100
    Field Value
    Type Description
    FontWeight

    w200

    Declaration
    public static readonly FontWeight w200
    Field Value
    Type Description
    FontWeight

    w300

    Declaration
    public static readonly FontWeight w300
    Field Value
    Type Description
    FontWeight

    w400

    Declaration
    public static readonly FontWeight w400
    Field Value
    Type Description
    FontWeight

    w500

    Declaration
    public static readonly FontWeight w500
    Field Value
    Type Description
    FontWeight

    w600

    Declaration
    public static readonly FontWeight w600
    Field Value
    Type Description
    FontWeight

    w700

    Declaration
    public static readonly FontWeight w700
    Field Value
    Type Description
    FontWeight

    w800

    Declaration
    public static readonly FontWeight w800
    Field Value
    Type Description
    FontWeight

    w900

    Declaration
    public static readonly FontWeight w900
    Field Value
    Type Description
    FontWeight

    Properties

    weightValue

    Declaration
    public int weightValue { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    Equals(FontWeight)

    Declaration
    public bool Equals(FontWeight other)
    Parameters
    Type Name Description
    FontWeight other
    Returns
    Type Description
    System.Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Operators

    Equality(FontWeight, FontWeight)

    Declaration
    public static bool operator ==(FontWeight left, FontWeight right)
    Parameters
    Type Name Description
    FontWeight left
    FontWeight right
    Returns
    Type Description
    System.Boolean

    Inequality(FontWeight, FontWeight)

    Declaration
    public static bool operator !=(FontWeight left, FontWeight right)
    Parameters
    Type Name Description
    FontWeight left
    FontWeight right
    Returns
    Type Description
    System.Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023