开发者

how to give a specified line specing in UITextField in flex?

i am us开发者_JAVA技巧ing a UITextField with multilines and want to add line specing as i need

how to do so in flex action script;

regards


it can be done by using TextFormat

var newtextformat:TextFormat = new TextFormat();

            newtextformat.size     = 12;
            newtextformat.color    = dayTextColor;
            newtextformat.bold     = false;
            newtextformat.align    = "left";
            newtextformat.font     = "Verdana";
            newtextformat.leading  = 5;//here you ca set line specing
            try{
            timetext.setTextFormat(newtextformat,0,timetext.length);
            }
            catch(err:Error){}
            timetext.multiline    = true;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜