Based on text content increase container size

For my game, I am using new Unity UI. I have question regarding this.

I want to increase my container size based on more number of characters enter into text area. So based on text, I want to increase container size. Following image represent my question clearly.

2305233--155300--Screen Shot 2015-09-21 at 8.37.54 pm.png

Please give me your suggestion.

relative to anchor point

RectTransform.sizeDelta = new Vector2 (x,y);

that and
like number of characters in the string > number of chars that fit in a line

…or something like that…

@CaoMengde777 , Thanks for your suggestion. Now I have a path to move ahead. If I have any further question then I will ask.