TextArea设置文本的局部样式?var tr:TextRange new TextRange(ta,true,ta.selectionBeginIndex,ta.selec
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"/>
