开发者

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

开发者 https://www.devze.com 2023-01-29 21:25 出处:网络
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;

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

精彩评论

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