Skip to content

Text ​

Inherits UiNode → Instance.

Made with Instance.new("Text").

Properties ​

NameTypeNotes
DisplayTextstringRead-only. Not saved in places.
RichTextboolean
SelectionColorstring | Color
Textstring

Methods ​

  • ClearSelection(): ()
  • GetCharacterAt(position: Vector2): number?
  • GetSelectedText(): string
  • Select(anchor: number, cursor: number): ()

Inherited ​

From UiNode: AddClass, AlignContent, AlignItems, AlignSelf, Animation, AnimationEnded, AspectRatio, Background, Blur, Blurred, BorderBottomLeftRadius, BorderBottomRightRadius, BorderBottomWidth, BorderColor, BorderLeftWidth, BorderRadius, BorderRightWidth, BorderTopLeftRadius, BorderTopRightRadius, BorderTopWidth, BorderWidth, Bottom, BoxShadow, CapturePointer, Classes, Click, ClickCapture, Color, ColumnGap, ContextMenu, Display, DoubleClick, DoubleClickCapture, DragEnd, DragEnter, DragLeave, DragOver, DragStart, Draggable, Drop, FlexBasis, FlexDirection, FlexGrow, FlexShrink, FlexWrap, Focus, Focused, FontFamily, FontSize, FontWeight, Gap, GridAutoColumns, GridAutoRows, GridColumn, GridRow, GridTemplateColumns, GridTemplateRows, HasClass, HasPointerCapture, Height, Id, Inset, IsDragOver, IsDragging, IsFocused, IsHovered, IsPressed, IsTransitioning, JustifyContent, KeyDown, KeyDownCapture, KeyUp, KeyUpCapture, LayoutChanged, LayoutRect, Left, LineHeight, Margin, MarginBottom, MarginLeft, MarginRight, MarginTop, MaxHeight, MaxWidth, MinHeight, MinWidth, Opacity, Overflow, Padding, PaddingBottom, PaddingLeft, PaddingRight, PaddingTop, PointerDown, PointerDownCapture, PointerEnter, PointerEvents, PointerLeave, PointerMove, PointerMoveCapture, PointerUp, PointerUpCapture, Position, ReleasePointerCapture, RemoveClass, Right, RowGap, ScrollIntoView, ScrollPosition, ScrollSize, TabIndex, TextAlign, TextOverflow, ToggleClass, Top, Transform, TransformOrigin, Transition, TransitionEnded, UserSelect, Wheel, WheelCapture, WhiteSpace, Width, ZIndex.

From Instance: AddTag, AncestryChanged, Archivable, AttributeChanged, Changed, ChildAdded, ChildRemoved, ClassName, ClearAllChildren, Clone, DescendantAdded, DescendantRemoving, Destroy, Destroying, FindFirstAncestor, FindFirstAncestorOfClass, FindFirstAncestorWhichIsA, FindFirstChild, FindFirstChildOfClass, FindFirstChildWhichIsA, GetAttribute, GetAttributeChangedSignal, GetAttributes, GetChildren, GetDescendants, GetFullName, GetPropertyChangedSignal, GetTags, HasTag, IsA, IsAncestorOf, IsDescendantOf, IsPropertyModified, Name, Parent, QueryDescendants, RemoveTag, ResetPropertyToDefault, SetAttribute, WaitForChild.

Apache License 2.0