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

    Class Text

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatelessWidget
    Text
    Inherited Members
    StatelessWidget.createElement()
    Widget.key
    Widget.toStringShort()
    Widget.canUpdate(Widget, Widget)
    CanonicalMixinDiagnosticableTree.pureWidget
    CanonicalMixinDiagnosticableTree.Equals(Object)
    CanonicalMixinDiagnosticableTree.GetHashCode()
    DiagnosticableTree.toStringShallow(String, DiagnosticLevel)
    DiagnosticableTree.toStringDeep(String, String, DiagnosticLevel)
    DiagnosticableTree.toDiagnosticsNode(String, DiagnosticsTreeStyle)
    DiagnosticableTree.debugDescribeChildren()
    Diagnosticable.ToString()
    Diagnosticable.toString(DiagnosticLevel)
    Namespace: Unity.UIWidgets.widgets
    Syntax
    public class Text : StatelessWidget

    Constructors

    Text(String, Key, TextStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>)

    Declaration
    public Text(string data, Key key = null, TextStyle style = null, TextAlign? textAlign = default(TextAlign? ), bool? softWrap = default(bool? ), TextOverflow? overflow = default(TextOverflow? ), float? textScaleFactor = default(float? ), int? maxLines = default(int? ))
    Parameters
    Type Name Description
    System.String data
    Key key
    TextStyle style
    System.Nullable<TextAlign> textAlign
    System.Nullable<System.Boolean> softWrap
    System.Nullable<TextOverflow> overflow
    System.Nullable<System.Single> textScaleFactor
    System.Nullable<System.Int32> maxLines

    Fields

    data

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

    maxLines

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

    overflow

    Declaration
    public readonly TextOverflow? overflow
    Field Value
    Type Description
    System.Nullable<TextOverflow>

    softWrap

    Declaration
    public readonly bool? softWrap
    Field Value
    Type Description
    System.Nullable<System.Boolean>

    style

    Declaration
    public readonly TextStyle style
    Field Value
    Type Description
    TextStyle

    textAlign

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

    textScaleFactor

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

    textSpan

    Declaration
    public readonly TextSpan textSpan
    Field Value
    Type Description
    TextSpan

    Methods

    build(BuildContext)

    Declaration
    public override Widget build(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    Widget
    Overrides
    StatelessWidget.build(BuildContext)

    debugFillProperties(DiagnosticPropertiesBuilder)

    Declaration
    public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
    Parameters
    Type Name Description
    DiagnosticPropertiesBuilder properties
    Overrides
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)

    rich(TextSpan, Key, TextStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>)

    Declaration
    public static Text rich(TextSpan textSpan, Key key = null, TextStyle style = null, TextAlign? textAlign = default(TextAlign? ), bool? softWrap = default(bool? ), TextOverflow? overflow = default(TextOverflow? ), float? textScaleFactor = default(float? ), int? maxLines = default(int? ))
    Parameters
    Type Name Description
    TextSpan textSpan
    Key key
    TextStyle style
    System.Nullable<TextAlign> textAlign
    System.Nullable<System.Boolean> softWrap
    System.Nullable<TextOverflow> overflow
    System.Nullable<System.Single> textScaleFactor
    System.Nullable<System.Int32> maxLines
    Returns
    Type Description
    Text
    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