Change size of the new UI rect transform using scripts

Hi!

I need to change the width of my rect transform using a script. But I can’t find any way to do it. How do I do it?

Also, if you have no idea what I am talking about, get the new Unity 4.6.

Thanks in advance!

rectTransform.sizeDelta = new Vector2( yourWidth, yourHeight);