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

    Class SelectableText

    Inheritance
    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, GestureTapDownCallback, GestureTapUpCallback, GestureTapCancelCallback)

    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, GestureTapDownCallback onTapDown = null, GestureTapUpCallback onTapUp = null, GestureTapCancelCallback onTapCancel = null)
    Parameters
    Type Name Description
    String data
    Key key
    TextStyle style
    Nullable<TextAlign> textAlign
    Nullable<Boolean> softWrap
    Nullable<TextOverflow> overflow
    Nullable<Single> textScaleFactor
    Nullable<Int32> maxLines
    FocusNode focusNode
    Color selectionColor
    GestureTapDownCallback onTapDown
    GestureTapUpCallback onTapUp
    GestureTapCancelCallback onTapCancel

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

    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, GestureTapDownCallback onTapDown = null, GestureTapUpCallback onTapUp = null, GestureTapCancelCallback onTapCancel = null)
    Parameters
    Type Name Description
    TextSpan textSpan
    Key key
    TextStyle style
    Nullable<TextAlign> textAlign
    Nullable<Boolean> softWrap
    Nullable<TextOverflow> overflow
    Nullable<Single> textScaleFactor
    Nullable<Int32> maxLines
    FocusNode focusNode
    Color selectionColor
    GestureTapDownCallback onTapDown
    GestureTapUpCallback onTapUp
    GestureTapCancelCallback onTapCancel

    Fields

    data

    Declaration
    public readonly string data
    Field Value
    Type Description
    String

    focusNode

    Declaration
    public readonly FocusNode focusNode
    Field Value
    Type Description
    FocusNode

    maxLines

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

    onTapCancel

    Declaration
    public readonly GestureTapCancelCallback onTapCancel
    Field Value
    Type Description
    GestureTapCancelCallback

    onTapDown

    Declaration
    public readonly GestureTapDownCallback onTapDown
    Field Value
    Type Description
    GestureTapDownCallback

    onTapUp

    Declaration
    public readonly GestureTapUpCallback onTapUp
    Field Value
    Type Description
    GestureTapUpCallback

    overflow

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

    selectionColor

    Declaration
    public readonly Color selectionColor
    Field Value
    Type Description
    Color

    softWrap

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

    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

    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, GestureTapDownCallback, GestureTapUpCallback, GestureTapCancelCallback)

    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, GestureTapDownCallback onTapDown = null, GestureTapUpCallback onTapUp = null, GestureTapCancelCallback onTapCancel = null)
    Parameters
    Type Name Description
    TextSpan textSpan
    Key key
    TextStyle style
    Nullable<TextAlign> textAlign
    Nullable<Boolean> softWrap
    Nullable<TextOverflow> overflow
    Nullable<Single> textScaleFactor
    Nullable<Int32> maxLines
    FocusNode focusNode
    Color selectionColor
    GestureTapDownCallback onTapDown
    GestureTapUpCallback onTapUp
    GestureTapCancelCallback onTapCancel
    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