class flash.text.TextField extends InteractiveObject

Available on flash

Class Fields

static function isFontCompatible(fontName:String, fontStyle:String):Bool

Instance Fields

function new():Void

function appendText(newText:String):Void

function copyRichText():String

function getCharBoundaries(charIndex:Int):Rectangle

function getFirstCharInParagraph(charIndex:Int):Int

function getLineIndexOfChar(charIndex:Int):Int

function getLineLength(lineIndex:Int):Int

function getLineMetrics(lineIndex:Int):TextLineMetrics

function getLineOffset(lineIndex:Int):Int

function getLineText(lineIndex:Int):String

function getParagraphLength(charIndex:Int):Int

function getRawText():String

function getTextFormat(?beginIndex:Int, ?endIndex:Int):TextFormat

function getTextRuns(?beginIndex:Int, ?endIndex:Int):Array<Dynamic>

function getXMLText(?beginIndex:Int, ?endIndex:Int):String

function insertXMLText(beginIndex:Int, endIndex:Int, richText:String, ?pasting:Bool):Void

function pasteRichText(richText:String):Bool

function replaceText(beginIndex:Int, endIndex:Int, newText:String):Void

function setSelection(beginIndex:Int, endIndex:Int):Void

function setTextFormat(format:TextFormat, ?beginIndex:Int, ?endIndex:Int):Void