TextArea设置文本的局部样式
?
var tr:TextRange = new TextRange(ta,true,ta.selectionBeginIndex,ta.selectionEndIndex);tr.fontSize = 20;tr.fontWeight = "bold";<mx:TextArea id="ta" width="300" height="200"/>
发布时间: 2012-09-14 23:00:49 作者: rapoo
TextArea设置文本的局部样式
?
var tr:TextRange = new TextRange(ta,true,ta.selectionBeginIndex,ta.selectionEndIndex);tr.fontSize = 20;tr.fontWeight = "bold";<mx:TextArea id="ta" width="300" height="200"/>