Class ParagraphStyle | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class ParagraphStyle

    Inheritance
    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, StrutStyle)

    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? height = default(float? ), string ellipsis = null, StrutStyle strutStyle = null)
    Parameters
    Type Name Description
    Nullable<TextAlign> textAlign
    Nullable<TextDirection> textDirection
    FontWeight fontWeight
    Nullable<FontStyle> fontStyle
    Nullable<Int32> maxLines
    Nullable<Single> fontSize
    String fontFamily
    Nullable<Single> height
    String ellipsis
    StrutStyle strutStyle

    Fields

    ellipsis

    Declaration
    public readonly string ellipsis
    Field Value
    Type Description
    String

    fontFamily

    Declaration
    public readonly string fontFamily
    Field Value
    Type Description
    String

    fontSize

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

    fontStyle

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

    fontWeight

    Declaration
    public readonly FontWeight fontWeight
    Field Value
    Type Description
    FontWeight

    height

    Declaration
    public readonly float? height
    Field Value
    Type Description
    Nullable<Single>

    maxLines

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

    strutStyle

    Declaration
    public readonly StrutStyle strutStyle
    Field Value
    Type Description
    StrutStyle

    textAlign

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

    textDirection

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

    Properties

    TextAlign

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

    Methods

    ellipsized()

    Declaration
    public bool ellipsized()
    Returns
    Type Description
    Boolean

    Equals(Object)

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

    Equals(ParagraphStyle)

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

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    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
    Boolean

    Inequality(ParagraphStyle, ParagraphStyle)

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