TextField
package flash.text
extends InteractiveObject › DisplayObject › EventDispatcher
Available on flash
Static methods
staticisFontCompatible(fontName:String, fontStyle:String):Bool
Constructor
new()
Variables
alwaysShowSelection:Bool
antiAliasType:AntiAliasType
autoSize:TextFieldAutoSize
background:Bool
backgroundColor:UInt
border:Bool
borderColor:UInt
read onlybottomScrollV:Int
read onlycaretIndex:Int
condenseWhite:Bool
defaultTextFormat:TextFormat
displayAsPassword:Bool
embedFonts:Bool
gridFitType:GridFitType
htmlText:String
read onlylength:Int
maxChars:Int
read onlymaxScrollH:Int
read onlymaxScrollV:Int
mouseWheelEnabled:Bool
multiline:Bool
read onlynumLines:Int
restrict:String
scrollH:Int
scrollV:Int
selectable:Bool
read onlyselectedText:String
read onlyselectionBeginIndex:Int
read onlyselectionEndIndex:Int
sharpness:Float
styleSheet:StyleSheet
text:String
textColor:UInt
read onlytextHeight:Float
read onlytextInteractionMode:TextInteractionMode
read onlytextWidth:Float
thickness:Float
type:TextFieldType
useRichTextClipboard:Bool
wordWrap:Bool
Methods
appendText(newText:String):Void
copyRichText():String
getCharBoundaries(charIndex:Int):Rectangle
getCharIndexAtPoint(x:Float, y:Float):Int
getFirstCharInParagraph(charIndex:Int):Int
getImageReference(id:String):DisplayObject
getLineIndexAtPoint(x:Float, y:Float):Int
getLineIndexOfChar(charIndex:Int):Int
getLineLength(lineIndex:Int):Int
getLineMetrics(lineIndex:Int):TextLineMetrics
getLineOffset(lineIndex:Int):Int
getLineText(lineIndex:Int):String
getParagraphLength(charIndex:Int):Int
getRawText():String
getTextFormat(beginIndex:Int = -1, endIndex:Int = -1):TextFormat
getTextRuns(beginIndex:Int = 0, endIndex:Int = 2147483647):Array<Dynamic>
getXMLText(beginIndex:Int = 0, endIndex:Int = 2147483647):String
insertXMLText(beginIndex:Int, endIndex:Int, richText:String, pasting:Bool = false):Void
pasteRichText(richText:String):Bool
replaceSelectedText(value:String):Void
replaceText(beginIndex:Int, endIndex:Int, newText:String):Void
setSelection(beginIndex:Int, endIndex:Int):Void
setTextFormat(format:TextFormat, beginIndex:Int = -1, endIndex:Int = -1):Void
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/text/TextField.html