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

    Class Paragraph

    Inheritance
    System.Object
    Paragraph
    Namespace: Unity.UIWidgets.ui
    Syntax
    public class Paragraph

    Properties

    alphabeticBaseline

    Declaration
    public float alphabeticBaseline { get; }
    Property Value
    Type Description
    System.Single

    didExceedMaxLines

    Declaration
    public bool didExceedMaxLines { get; }
    Property Value
    Type Description
    System.Boolean

    height

    Declaration
    public float height { get; }
    Property Value
    Type Description
    System.Single

    ideographicBaseline

    Declaration
    public float ideographicBaseline { get; }
    Property Value
    Type Description
    System.Single

    maxIntrinsicWidth

    Declaration
    public float maxIntrinsicWidth { get; }
    Property Value
    Type Description
    System.Single

    minIntrinsicWidth

    Declaration
    public float minIntrinsicWidth { get; }
    Property Value
    Type Description
    System.Single

    width

    Declaration
    public float width { get; }
    Property Value
    Type Description
    System.Single

    Methods

    getLine(TextPosition)

    Declaration
    public int getLine(TextPosition position)
    Parameters
    Type Name Description
    TextPosition position
    Returns
    Type Description
    System.Int32

    getLineCount()

    Declaration
    public int getLineCount()
    Returns
    Type Description
    System.Int32

    getNextLineStartRect()

    Declaration
    public TextBox getNextLineStartRect()
    Returns
    Type Description
    TextBox

    getRectsForRange(Int32, Int32)

    Declaration
    public List<TextBox> getRectsForRange(int start, int end)
    Parameters
    Type Name Description
    System.Int32 start
    System.Int32 end
    Returns
    Type Description
    System.Collections.Generic.List<TextBox>

    layout(ParagraphConstraints)

    Declaration
    public void layout(ParagraphConstraints constraints)
    Parameters
    Type Name Description
    ParagraphConstraints constraints

    paint(Canvas, Offset)

    Declaration
    public void paint(Canvas canvas, Offset offset)
    Parameters
    Type Name Description
    Canvas canvas
    Offset offset

    setParagraphStyle(ParagraphStyle)

    Declaration
    public void setParagraphStyle(ParagraphStyle style)
    Parameters
    Type Name Description
    ParagraphStyle style
    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