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

    Class SelectableText

    Inheritance
    System.Object
    Diagnosticable
    DiagnosticableTree
    CanonicalMixinDiagnosticableTree
    Widget
    StatefulWidget
    SelectableText
    Inherited Members
    StatefulWidget.createElement()
    Widget.key
    Widget.toStringShort()
    Widget.debugFillProperties(DiagnosticPropertiesBuilder)
    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 SelectableText : StatefulWidget

    Constructors

    SelectableText(String, Key, TextStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>, FocusNode, Color)

    Declaration
    public SelectableText(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? ), FocusNode focusNode = null, Color selectionColor = null)
    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
    FocusNode focusNode
    Color selectionColor

    SelectableText(TextSpan, Key, TextStyle, Nullable<TextAlign>, Nullable<Boolean>, Nullable<TextOverflow>, Nullable<Single>, Nullable<Int32>, FocusNode, Color)

    Declaration
    public SelectableText(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? ), FocusNode focusNode = null, Color selectionColor = null)
    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
    FocusNode focusNode
    Color selectionColor

    Fields

    data

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

    focusNode

    Declaration
    public readonly FocusNode focusNode
    Field Value
    Type Description
    FocusNode

    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>

    selectionColor

    Declaration
    public readonly Color selectionColor
    Field Value
    Type Description
    Color

    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

    createState()

    Declaration
    public override State createState()
    Returns
    Type Description
    State
    Overrides
    StatefulWidget.createState()

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

    Declaration
    public static SelectableText 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? ), FocusNode focusNode = null, Color selectionColor = null)
    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
    FocusNode focusNode
    Color selectionColor
    Returns
    Type Description
    SelectableText
    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