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

    Class RichText

    Inheritance
    Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    RenderObjectWidget
    LeafRenderObjectWidget
    RichText
    Inherited Members
    LeafRenderObjectWidget.createElement()
    RenderObjectWidget.didUnmountRenderObject(RenderObject)
    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 RichText : LeafRenderObjectWidget

    Constructors

    RichText(Key, TextSpan, TextAlign, Boolean, TextOverflow, Single, Nullable<Int32>, Action, Color, StrutStyle)

    Declaration
    public RichText(Key key = null, TextSpan text = null, TextAlign textAlign = TextAlign.left, bool softWrap = true, TextOverflow overflow = TextOverflow.clip, float textScaleFactor = 1F, int? maxLines = default(int? ), Action onSelectionChanged = null, Color selectionColor = null, StrutStyle strutStyle = null)
    Parameters
    Type Name Description
    Key key
    TextSpan text
    TextAlign textAlign
    Boolean softWrap
    TextOverflow overflow
    Single textScaleFactor
    Nullable<Int32> maxLines
    Action onSelectionChanged
    Color selectionColor
    StrutStyle strutStyle

    Fields

    maxLines

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

    onSelectionChanged

    Declaration
    public readonly Action onSelectionChanged
    Field Value
    Type Description
    Action

    overflow

    Declaration
    public readonly TextOverflow overflow
    Field Value
    Type Description
    TextOverflow

    selectionColor

    Declaration
    public readonly Color selectionColor
    Field Value
    Type Description
    Color

    softWrap

    Declaration
    public readonly bool softWrap
    Field Value
    Type Description
    Boolean

    strutStyle

    Declaration
    public readonly StrutStyle strutStyle
    Field Value
    Type Description
    StrutStyle

    text

    Declaration
    public readonly TextSpan text
    Field Value
    Type Description
    TextSpan

    textAlign

    Declaration
    public readonly TextAlign textAlign
    Field Value
    Type Description
    TextAlign

    textScaleFactor

    Declaration
    public readonly float textScaleFactor
    Field Value
    Type Description
    Single

    Methods

    createRenderObject(BuildContext)

    Declaration
    public override RenderObject createRenderObject(BuildContext context)
    Parameters
    Type Name Description
    BuildContext context
    Returns
    Type Description
    RenderObject
    Overrides
    RenderObjectWidget.createRenderObject(BuildContext)

    debugFillProperties(DiagnosticPropertiesBuilder)

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

    updateRenderObject(BuildContext, RenderObject)

    Declaration
    public override void updateRenderObject(BuildContext context, RenderObject renderObjectRaw)
    Parameters
    Type Name Description
    BuildContext context
    RenderObject renderObjectRaw
    Overrides
    RenderObjectWidget.updateRenderObject(BuildContext, RenderObject)
    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