W3cubDocs

/Haxe Flash

TextField

package flash.text

extends InteractiveObjectDisplayObjectEventDispatcher

Available on flash

Constructor

new ()

Variables

alwaysShowSelection:Bool

antiAliasType:AntiAliasType

autoSize:TextFieldAutoSize

background:Bool

backgroundColor:UInt

border:Bool

borderColor:UInt

read only bottomScrollV:Int

read only caretIndex:Int

condenseWhite:Bool

defaultTextFormat:TextFormat

displayAsPassword:Bool

embedFonts:Bool

gridFitType:GridFitType

htmlText:String

read only length:Int

maxChars:Int

read only maxScrollH:Int

read only maxScrollV:Int

mouseWheelEnabled:Bool

multiline:Bool

read only numLines:Int

restrict:String

scrollH:Int

scrollV:Int

selectable:Bool

read only selectedText:String

read only selectionBeginIndex:Int

read only selectionEndIndex:Int

sharpness:Float

styleSheet:StyleSheet

text:String

textColor:UInt

read only textHeight:Float

@:require(flash11) read only textInteractionMode:TextInteractionMode

read only textWidth: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

@:value({ endIndex : -1, beginIndex : -1 }) getTextFormat (beginIndex:Int = -1, endIndex:Int = -1):TextFormat

@:value({ endIndex : 2147483647, beginIndex : 0 }) getTextRuns (beginIndex:Int = 0, endIndex:Int = 2147483647):Array<Dynamic>

@:value({ endIndex : 2147483647, beginIndex : 0 }) getXMLText (beginIndex:Int = 0, endIndex:Int = 2147483647):String

@:value({ pasting : false }) 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

@:value({ endIndex : -1, beginIndex : -1 }) setTextFormat (format:TextFormat, beginIndex:Int = -1, endIndex:Int = -1):Void

Static methods

@:require(flash10) static isFontCompatible (fontName:String, fontStyle:String):Bool

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/text/TextField.html