TextField

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

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

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

Static methods

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

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部