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

    Class Text

    Inheritance
    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, StrutStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>)

    Declaration
    public Text(string data, Key key = null, TextStyle style = null, StrutStyle strutStyle = 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
    String data
    Key key
    TextStyle style
    StrutStyle strutStyle
    Nullable<TextAlign> textAlign
    Nullable<Boolean> softWrap
    Nullable<TextOverflow> overflow
    Nullable<Single> textScaleFactor
    Nullable<Int32> maxLines

    Fields

    data

    Declaration
    public readonly string data
    Field Value
    Type Description
    String

    maxLines

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

    overflow

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

    softWrap

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

    strutStyle

    Declaration
    public readonly StrutStyle strutStyle
    Field Value
    Type Description
    StrutStyle

    style

    Declaration
    public readonly TextStyle style
    Field Value
    Type Description
    TextStyle

    textAlign

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

    textScaleFactor

    Declaration
    public readonly float? textScaleFactor
    Field Value
    Type Description
    Nullable<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, StrutStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>)

    Declaration
    public static Text rich(TextSpan textSpan, Key key = null, TextStyle style = null, StrutStyle strutStyle = 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
    StrutStyle strutStyle
    Nullable<TextAlign> textAlign
    Nullable<Boolean> softWrap
    Nullable<TextOverflow> overflow
    Nullable<Single> textScaleFactor
    Nullable<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