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

    Class ParagraphStyle

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

    Constructors

    ParagraphStyle(Nullable<TextAlign>, Nullable<TextDirection>, FontWeight, Nullable<FontStyle>, Nullable<Int32>, Nullable<Single>, String, Nullable<Single>, String)

    Declaration
    public ParagraphStyle(TextAlign? textAlign = default(TextAlign? ), TextDirection? textDirection = default(TextDirection? ), FontWeight fontWeight = null, FontStyle? fontStyle = default(FontStyle? ), int? maxLines = default(int? ), float? fontSize = default(float? ), string fontFamily = null, float? lineHeight = default(float? ), string ellipsis = null)
    Parameters
    Type Name Description
    System.Nullable<TextAlign> textAlign
    System.Nullable<TextDirection> textDirection
    FontWeight fontWeight
    System.Nullable<FontStyle> fontStyle
    System.Nullable<System.Int32> maxLines
    System.Nullable<System.Single> fontSize
    System.String fontFamily
    System.Nullable<System.Single> lineHeight
    System.String ellipsis

    Fields

    ellipsis

    Declaration
    public readonly string ellipsis
    Field Value
    Type Description
    System.String

    fontFamily

    Declaration
    public readonly string fontFamily
    Field Value
    Type Description
    System.String

    fontSize

    Declaration
    public readonly float? fontSize
    Field Value
    Type Description
    System.Nullable<System.Single>

    fontStyle

    Declaration
    public readonly FontStyle? fontStyle
    Field Value
    Type Description
    System.Nullable<FontStyle>

    fontWeight

    Declaration
    public readonly FontWeight fontWeight
    Field Value
    Type Description
    FontWeight

    lineHeight

    Declaration
    public readonly float? lineHeight
    Field Value
    Type Description
    System.Nullable<System.Single>

    maxLines

    Declaration
    public readonly int? maxLines
    Field Value
    Type Description
    System.Nullable<System.Int32>

    textAlign

    Declaration
    public readonly TextAlign? textAlign
    Field Value
    Type Description
    System.Nullable<TextAlign>

    textDirection

    Declaration
    public readonly TextDirection? textDirection
    Field Value
    Type Description
    System.Nullable<TextDirection>

    Properties

    TextAlign

    Declaration
    public TextAlign TextAlign { get; }
    Property Value
    Type Description
    TextAlign

    Methods

    ellipsized()

    Declaration
    public bool ellipsized()
    Returns
    Type Description
    System.Boolean

    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(ParagraphStyle)

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

    GetHashCode()

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

    Operators

    Equality(ParagraphStyle, ParagraphStyle)

    Declaration
    public static bool operator ==(ParagraphStyle a, ParagraphStyle b)
    Parameters
    Type Name Description
    ParagraphStyle a
    ParagraphStyle b
    Returns
    Type Description
    System.Boolean

    Inequality(ParagraphStyle, ParagraphStyle)

    Declaration
    public static bool operator !=(ParagraphStyle a, ParagraphStyle b)
    Parameters
    Type Name Description
    ParagraphStyle a
    ParagraphStyle b
    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