W3cubDocs

/Haxe Flash

TextSnapshot

package flash.text

Available on flash

Constructor

new ()

Variables

read only charCount:Int

Methods

findText (beginIndex:Int, textToFind:String, caseSensitive:Bool):Int

getSelected (beginIndex:Int, endIndex:Int):Bool

@:value({ includeLineEndings : false }) getSelectedText (includeLineEndings:Bool = false):String

@:value({ includeLineEndings : false }) getText (beginIndex:Int, endIndex:Int, includeLineEndings:Bool = false):String

getTextRunInfo (beginIndex:Int, endIndex:Int):Array<Dynamic>

@:value({ maxDistance : 0 }) hitTestTextNearPos (x:Float, y:Float, maxDistance:Float = 0):Float

@:value({ hexColor : 16776960 }) setSelectColor (hexColor:UInt = 16776960):Void

setSelected (beginIndex:Int, endIndex:Int, select:Bool):Void

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